Ticket #13684: django-core-handlers-base-2.diff
File django-core-handlers-base-2.diff, 1.0 KB (added by , 14 years ago) |
---|
-
django/core/handlers/base.py
class BaseHandler(object): 73 73 from django.conf import settings 74 74 75 75 try: 76 try: 77 # Setup default url resolver for this thread. 78 urlconf = settings.ROOT_URLCONF 79 urlresolvers.set_urlconf(urlconf) 80 resolver = urlresolvers.RegexURLResolver(r'^/', urlconf) 81 response = None 76 # Setup default url resolver for this thread. 77 urlconf = settings.ROOT_URLCONF 78 urlresolvers.set_urlconf(urlconf) 79 resolver = urlresolvers.RegexURLResolver(r'^/', urlconf) 80 response = None 82 81 82 try: 83 83 # Apply request middleware 84 84 for middleware_method in self._request_middleware: 85 85 response = middleware_method(request)