Need moar regex but this'll do for now.
parent
aa70f98a5f
commit
7685268b7c
|
@ -35,4 +35,4 @@ class BlogMiddleware:
|
||||||
request.blog_user = pro_user
|
request.blog_user = pro_user
|
||||||
|
|
||||||
if host != pro_user.profile.get_primary_blog_domain():
|
if host != pro_user.profile.get_primary_blog_domain():
|
||||||
return HttpResponseRedirect(pro_user.profile.get_primary_blog_domain())
|
return HttpResponseRedirect('http://' + pro_user.profile.get_primary_blog_domain())
|
||||||
|
|
Loading…
Reference in New Issue