[patch] allow middleware to override the URL configuration
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)
| Summary: |
allow middleware to override the URL configuration → ]patch] allow middleware to override the URL configuration
|
| Summary: |
]patch] allow middleware to override the URL configuration → [patch] allow middleware to override the URL configuration
|
| Resolution: |
→ fixed
|
| Status: |
new → closed
|
(adding an urlconf class attribute to the Request base class would also be a good idea, of course)