diff --git a/blogs/middleware.py b/blogs/middleware.py index 3660673..c2c52b0 100644 --- a/blogs/middleware.py +++ b/blogs/middleware.py @@ -35,4 +35,4 @@ class BlogMiddleware: request.blog_user = pro_user 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())