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 
functions all over the place, like the models and request context -- places 
where I *don't* have a request variable. All I have is access to 
settings.SOME_VAR -- hence I would like to get:

apache: ServerName ---> settings.py: SERVER_NAME

Any help/suggestions?

\d



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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