Setup domain for witsoregon. This is getting old. This is bad software people, take note.

master
Nick Sergeant 2013-01-10 21:46:03 -05:00
parent 2dd8d95188
commit 322223e295
3 changed files with 12 additions and 0 deletions

View File

@ -30,6 +30,9 @@ class BlogMiddleware:
if host == 'rochacbruno.com.br':
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':
request.blog_user = User.objects.get(id=10325)

View File

@ -10,6 +10,11 @@
<description>Ashley Sergeant</description>
<title>Ashley Sergeant</title>
<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' %}
<atom:link href="http://rochacbruno.com.br/?rss" rel="self" type="application/rss+xml" />
<description>Bruno Cezar Rocha</description>

View File

@ -133,6 +133,8 @@ class Snipt(models.Model):
return 'http://nicksergeant.com/{}/'.format(self.slug)
elif self.user.id == 18:
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:
return 'http://rochacbruno.com.br/{}/'.format(self.slug)
elif self.user.id == 10325:
@ -158,6 +160,8 @@ class Snipt(models.Model):
return 'http://nicksergeant.com/{}/'.format(self.slug)
elif self.user.id == 18:
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:
return 'http://rochacbruno.com.br/{}/'.format(self.slug)
elif self.user.id == 10325: