Re: URL to specify when accessing subdomains using Django

2010-07-21 Thread nandu
Dear jaymzcd, I understand what the sites framework is used for and I have read through the Sites Frameworks documentation at least ten times. After a lot of experimentation I have found that my main problem is how i should specify my URL as I am working on my local machine. I have set up my sub

Re: URL to specify when accessing subdomains using Django

2010-07-20 Thread jaymzcd
Have you been through everything here: http://docs.djangoproject.com/en/dev/ref/contrib/sites/ ? It goes through the whole process of working with the sites framework, its even encouraged to be used when running just a single site. It sounds like you are making it more complicated that needs be. I

Re: URL to specify when accessing subdomains using Django

2010-07-19 Thread nandu
Could someone please help me and answer my question in the last email? Thank you. Nanda On Jul 19, 9:52 pm, nandu wrote: > Dear All, > > I have now set up my subdomains as separate sites using the sites > framework but I have a few queries: > > 1. Does each site really require a separate django

Re: URL to specify when accessing subdomains using Django

2010-07-19 Thread nandu
Dear All, I have now set up my subdomains as separate sites using the sites framework but I have a few queries: 1. Does each site really require a separate django instance or can I run all the subdomains on one instance? I have seven subdomains and running seven django instances seems wasteful.

Re: URL to specify when accessing subdomains using Django

2010-07-19 Thread nandu
Thank you to all whohave replied. I will give the sites framework an honest effort and solve my problem. Thank you very much for your time and effort. :-) Nanda On Jul 19, 2:42 pm, jaymzcd wrote: > Like Daniel & Steve have said already, urls.py only deals with the > path component of the URL,

Re: URL to specify when accessing subdomains using Django

2010-07-19 Thread jaymzcd
Like Daniel & Steve have said already, urls.py only deals with the path component of the URL, not the domain. The sites framework is what you need to use, its pretty simple. All you really need to do is something like: 1. in urls.py match the URL you want that is common for both subdomains 2. in y

Re: URL to specify when accessing subdomains using Django

2010-07-18 Thread nandu
Thank you to all who have replied to my query. I do not think I need to use the sites framework because my subdomains are not on different servers and hence are not really different sites. Possibly what I am working with are actually pseudo-subdomains and not subdomains in the real sense. I will e

Re: URL to specify when accessing subdomains using Django

2010-07-17 Thread Steve Holden
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 non

Re: URL to specify when accessing subdomains using Django

2010-07-17 Thread Daniel Roseman
On Jul 17, 5: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

URL to specify when accessing subdomains using Django

2010-07-17 Thread nandu
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 sp