I ran into the problem of Host-based url dispatch.

I need to make something like this:
urls.py:

if request.META["HTTP_HOST"] = 'blogs.example.com'
  urlpatterns += (Some patterns)

if request.META["HTTP_HOST"] = 'wikis.example.com'
  urlpatterns += (Abosolute different patterns)



I have no idea how to make implement this in django, django url
dispatcher comletely ignores host name. Does anyone has ideas?


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

Reply via email to