Hi,
Can anyone help me get some extra info in settings.py?

I have a domain that I want to point to various different Django apps 
depending on the 'hostname' portion of the domain name.

***.mydomain.com has (for ***):
www
comics
stuff

I want that first portion (www, comics, stuff) available in settings.py so I 
can tweak some vars for the apps within the project. How do I do that?

I have tried:
import socket
blah=socket.gethostname()

But that returns the hostname of the server, which does not seem related to 
the "virtual" names above. (I confess to being totally out of my depth when 
it comes to apache and so forth, but have I got it working to a point.)

Thanks,
\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