Re: Get ServerName in settings.py

2009-05-22 Thread Donn Ingle
Graham -- thank you for that detailed response. I had not expected it to be quite so intricate, so it will take me a wee while to savvy. Regards, \d --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Get ServerName in settings.py

2009-05-21 Thread Graham Dumpleton
On May 21, 11:51 pm, Donn Ingle wrote: > Hi, > Given that my apache uses many VirtualHosts and within each a ServerName, > how can I get that ServerName into a variable in my settings.py file? > > I am usingWSGIand mod_python. (different setups on dev vs. server) > > The reason is that I need t

Get ServerName in settings.py

2009-05-21 Thread Donn Ingle
Hi, Given that my apache uses many VirtualHosts and within each a ServerName, how can I get that ServerName into a variable in my settings.py file? I am using WSGI and mod_python. (different setups on dev vs. server) The reason is that I need to be able to build the whole http://servername in