2009-11-16 09:58:00 +08:00
|
|
|
from django.core.urlresolvers import set_urlconf
|
|
|
|
|
|
|
|
import urlconf_inner
|
|
|
|
|
|
|
|
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
|