#3187 closed enhancement (fixed)
[patch] allow middleware to override the URL configuration
Description ¶
Here's a simple patch that lets you use different URL configurations for each request. This allows you to use middleware components to switch between different configurations based on hostname:
http://effbot.org/zone/django-multihost.htm
or otherwise provide different views of the site, based on some characteristic of the request.
Change History (4)
by , 18 years ago
Attachment: | urlconf.diff added |
---|
comment:1 by , 18 years ago
Summary: | allow middleware to override the URL configuration → ]patch] allow middleware to override the URL configuration |
---|
comment:2 by , 18 years ago
Summary: | ]patch] allow middleware to override the URL configuration → [patch] allow middleware to override the URL configuration |
---|
comment:3 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(adding an urlconf class attribute to the Request base class would also be a good idea, of course)