Setup domain for witsoregon. This is getting old. This is bad software people, take note.
parent
2dd8d95188
commit
322223e295
|
@ -30,6 +30,9 @@ class BlogMiddleware:
|
||||||
if host == 'rochacbruno.com.br':
|
if host == 'rochacbruno.com.br':
|
||||||
request.blog_user = User.objects.get(id=2156)
|
request.blog_user = User.objects.get(id=2156)
|
||||||
|
|
||||||
|
if host == 'snips.witsoregon.com':
|
||||||
|
request.blog_user = User.objects.get(id=12291)
|
||||||
|
|
||||||
if host == 'snipt.joshhudnall.com':
|
if host == 'snipt.joshhudnall.com':
|
||||||
request.blog_user = User.objects.get(id=10325)
|
request.blog_user = User.objects.get(id=10325)
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,11 @@
|
||||||
<description>Ashley Sergeant</description>
|
<description>Ashley Sergeant</description>
|
||||||
<title>Ashley Sergeant</title>
|
<title>Ashley Sergeant</title>
|
||||||
<link>http://ashleysergeant.com/?rss</link>
|
<link>http://ashleysergeant.com/?rss</link>
|
||||||
|
{% elif request.blog_user.username == 'gdemaderios' %}
|
||||||
|
<atom:link href="http://snips.witsoregon.com/?rss" rel="self" type="application/rss+xml" />
|
||||||
|
<description>gdemaderios</description>
|
||||||
|
<title>gdemaderios</title>
|
||||||
|
<link>http://snips.witsoregon.com/?rss</link>
|
||||||
{% elif request.blog_user.username == 'rochacbruno' %}
|
{% elif request.blog_user.username == 'rochacbruno' %}
|
||||||
<atom:link href="http://rochacbruno.com.br/?rss" rel="self" type="application/rss+xml" />
|
<atom:link href="http://rochacbruno.com.br/?rss" rel="self" type="application/rss+xml" />
|
||||||
<description>Bruno Cezar Rocha</description>
|
<description>Bruno Cezar Rocha</description>
|
||||||
|
|
|
@ -133,6 +133,8 @@ class Snipt(models.Model):
|
||||||
return 'http://nicksergeant.com/{}/'.format(self.slug)
|
return 'http://nicksergeant.com/{}/'.format(self.slug)
|
||||||
elif self.user.id == 18:
|
elif self.user.id == 18:
|
||||||
return 'http://ashleysergeant.com/{}/'.format(self.slug)
|
return 'http://ashleysergeant.com/{}/'.format(self.slug)
|
||||||
|
elif self.user.id == 12291:
|
||||||
|
return 'http://snips.witsoregon.com/{}/'.format(self.slug)
|
||||||
elif self.user.id == 2156:
|
elif self.user.id == 2156:
|
||||||
return 'http://rochacbruno.com.br/{}/'.format(self.slug)
|
return 'http://rochacbruno.com.br/{}/'.format(self.slug)
|
||||||
elif self.user.id == 10325:
|
elif self.user.id == 10325:
|
||||||
|
@ -158,6 +160,8 @@ class Snipt(models.Model):
|
||||||
return 'http://nicksergeant.com/{}/'.format(self.slug)
|
return 'http://nicksergeant.com/{}/'.format(self.slug)
|
||||||
elif self.user.id == 18:
|
elif self.user.id == 18:
|
||||||
return 'http://ashleysergeant.com/{}/'.format(self.slug)
|
return 'http://ashleysergeant.com/{}/'.format(self.slug)
|
||||||
|
elif self.user.id == 12291:
|
||||||
|
return 'http://snips.witsoregon.com/{}/'.format(self.slug)
|
||||||
elif self.user.id == 2156:
|
elif self.user.id == 2156:
|
||||||
return 'http://rochacbruno.com.br/{}/'.format(self.slug)
|
return 'http://rochacbruno.com.br/{}/'.format(self.slug)
|
||||||
elif self.user.id == 10325:
|
elif self.user.id == 10325:
|
||||||
|
|
Loading…
Reference in New Issue