changeset 69 | c6bca38c1cbf |
68:5ff1fc726848 | 69:c6bca38c1cbf |
---|---|
1 from django.core.urlresolvers import set_urlconf |
|
2 |
|
3 import urlconf_inner |
|
4 |
|
5 class ChangeURLconfMiddleware(object): |
|
6 def process_request(self, request): |
|
7 request.urlconf = urlconf_inner.__name__ |
|
8 |
|
9 class NullChangeURLconfMiddleware(object): |
|
10 def process_request(self, request): |
|
11 request.urlconf = None |