On 7/17/2010 12:38 PM, nandu wrote: > Dear Folks, > > After researching the topic of using subdomains with Django I have > found that it is does not seem to be a straight forward thing to do. > > I have also found many websites showing methods of how to do this, but > there is one aspect that none of them seem to explain. That is how > does one specify the URL for the subdomain in urls.py if I had a > subdomain like "something.example.com". > > I would also appreciate it if someone could point me in the right > direction in terms of how to use subdomains with django as each > website seems to specify a different method, and I have no idea which > one is the best. The URLs of the websites I have looked at are below: > > http://uswaretech.com/blog/2008/10/using-subdomains-with-django/ > > http://thingsilearned.com/2009/01/05/using-subdomains-in-django/ > > http://www.nerdydork.com/django-accounts-on-subdomains.html > > http://djangosnippets.org/snippets/1119/ > > I am also looking for a solution that avoids making many changes to > the web application when it is about to be deployed. > > Please forgive my ignorance in this matter. > Servers in different subdomains are different sites, so you may want to read up about Django's sites framework.
http://docs.djangoproject.com/en/dev/ref/contrib/sites/ regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 DjangoCon US September 7-9, 2010 http://djangocon.us/ See Python Video! http://python.mirocommunity.org/ Holden Web LLC http://www.holdenweb.com/ -- Tel/Toll-free: +1 571 484 6266 +1 800 494 3119 DjangoCon US September 7-9, 2010 http://djangocon.us/ See Python Video! http://python.mirocommunity.org/ Holden Web LLC http://www.holdenweb.com/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.