Setup for rochacbruno.com.br
parent
d8018a953c
commit
0a05398a0f
|
@ -41,6 +41,9 @@ class BlogMiddleware:
|
|||
pass
|
||||
pass
|
||||
|
||||
if host == 'www.rochacbruno.com.br' or host == 'rochacbruno.com.br':
|
||||
request.blog_user = User.objects.get(id=2156)
|
||||
|
||||
if host == 'snipt.joshhudnall.com':
|
||||
request.blog_user = User.objects.get(id=10325)
|
||||
|
||||
|
|
|
@ -5,6 +5,11 @@
|
|||
<description>Nick Sergeant</description>
|
||||
<title>Nick Sergeant</title>
|
||||
<link>http://nicksergeant.com/?rss</link>
|
||||
{% elif request.blog_user.username == 'rochacbruno' %}
|
||||
<atom:link href="http://www.rochacbruno.com.br/?rss" rel="self" type="application/rss+xml" />
|
||||
<description>Bruno Cezar Rocha</description>
|
||||
<title>Bruno Cezar Rocha</title>
|
||||
<link>http://www.rochacbruno.com.br/?rss</link>
|
||||
{% elif request.blog_user.username == 'joshhudnall' %}
|
||||
<atom:link href="http://snipt.joshhudnall.com/?rss" rel="self" type="application/rss+xml" />
|
||||
<description>Josh Hudnall</description>
|
||||
|
|
|
@ -110,6 +110,8 @@ class Snipt(models.Model):
|
|||
return 'http://nick.snipt.localhost/{}/'.format(self.slug)
|
||||
else:
|
||||
return 'http://nicksergeant.com/{}/'.format(self.slug)
|
||||
elif self.user.id == 2156:
|
||||
return 'http://www.rochacbruno.com.br/{}/'.format(self.slug)
|
||||
elif self.user.id == 10325:
|
||||
return 'http://snipt.joshhudnall.com/{}/'.format(self.slug)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue