I have a blog application. and i want to set all user's accounts under subdomains. Like:
if someone type :
userx.blog.com
it must redirects to userx's blog page. i need to get that url and parse it from [].blog.com
and render requested user's page.
current profile url:
url(r'^blog/(?P<username>[-\w]+)/$', view='user_index',
name='user_index'),
in browser:
blog.com/blog/username
i hope i explained it clearly.
Thank you.