On Jul 17, 5:38 pm, nandu <navanitach...@gmail.com> 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.
>
> Thank you.
>
> Yours sincerely,
> Nanda

The reason none of those tutorials mention urls.py is because it has
nothing whatever to do with subdomains. urls.py only deals with the
path portion of the URL, not the domain.
--
DR.

-- 
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.

Reply via email to