Re: Host-based url dispatch

2007-07-24 Thread Graham Dumpleton
On Jul 24, 8:08 pm, Eratothene <[EMAIL PROTECTED]> wrote: > 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 +=

Host-based url dispatch

2007-07-24 Thread Eratothene
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 += (Ab