Ticket #13684: django-core-handlers-base-1.diff
File django-core-handlers-base-1.diff, 910 bytes (added by , 14 years ago) |
---|
-
django/core/handlers/base.py
class BaseHandler(object): 69 69 from django.conf import settings 70 70 71 71 try: 72 try: 73 # Setup default url resolver for this thread. 74 urlconf = settings.ROOT_URLCONF 75 urlresolvers.set_urlconf(urlconf) 76 resolver = urlresolvers.RegexURLResolver(r'^/', urlconf) 72 # Setup default url resolver for this thread. 73 urlconf = settings.ROOT_URLCONF 74 urlresolvers.set_urlconf(urlconf) 75 resolver = urlresolvers.RegexURLResolver(r'^/', urlconf) 77 76 77 try: 78 78 # Apply request middleware 79 79 for middleware_method in self._request_middleware: 80 80 response = middleware_method(request)