Adds Django full subdomains urls upport for urlpatterns and reverse resolving.
Requires installation into settings.py
Allows you route and generate views various urls.
'''
Example:
'domain.com' -> ''
'domain.com/doc' -> 'doc'
'domain.com/doc/' -> 'doc/'
'sub.domain.com' -> '/sub/'
'sub.domain.com/doc' -> '/sub/doc'
'sub.domain.com/doc/' -> '/sub/doc/'
'domain.com/foo' -> 'foo'
'foo.domain.com' -> '/foo/'
'sub1.sub2.domain
'''
https://gist.github.com/1430298