2011-10-14 05:34:56 +08:00
|
|
|
from __future__ import absolute_import
|
|
|
|
|
|
|
|
from . import urlconf_inner
|
|
|
|
|
2009-11-16 09:58:00 +08:00
|
|
|
|
|
|
|
class ChangeURLconfMiddleware(object):
|
|
|
|
def process_request(self, request):
|
|
|
|
request.urlconf = urlconf_inner.__name__
|
2010-03-26 23:08:24 +08:00
|
|
|
|
|
|
|
class NullChangeURLconfMiddleware(object):
|
|
|
|
def process_request(self, request):
|
|
|
|
request.urlconf = None
|