3👍
✅
As the first step, you need to arrange your DNS server to serve the wildcard domain; this is completely outside Django.
When you managed to do that (i.e. dig garry.posterous.com
succeeds), then simply check for the HTTP_HOST request variable in the django view routines.
0👍
see Using Subdomains with Django: http://www.rossp.org/blog/2007/apr/28/using-subdomains-django/
Source:stackexchange.com