On Oct 27, 2:00 pm, killer barney <[EMAIL PROTECTED]> wrote:
> I'm not too familiar with how to handle subdomain requests on django.
> If i have test.example.com, is this somethign I'm supposed to find in
> the urls.py?? Or is this done in the middleware?
>
> I'm really confused about this, so you may have to give me step by
> step instructions =)
More often than not it is done at the web server level. For example,
see VirtualHost configuration in Apache:
http://httpd.apache.org/docs/2.2/vhosts/
A single instance of the web application would then handle each
virtual host.
Technically, using mod_wsgi or mod_python, you could map multiple
virtual hosts into the same application instance, but individual
request handlers which need to act differently based on the server
name, with need to query which server the request arrived for out of
the request information.
Graham
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---