mirror of
https://github.com/Hopiu/django.git
synced 2026-03-20 16:00:27 +00:00
12 lines
313 B
Python
12 lines
313 B
Python
from __future__ import absolute_import
|
|
|
|
from . import urlconf_inner
|
|
|
|
|
|
class ChangeURLconfMiddleware(object):
|
|
def process_request(self, request):
|
|
request.urlconf = urlconf_inner.__name__
|
|
|
|
class NullChangeURLconfMiddleware(object):
|
|
def process_request(self, request):
|
|
request.urlconf = None
|