Ticket #13684: django-core-handlers-base-2.diff

File django-core-handlers-base-2.diff, 1.0 KB (added by sbc, 14 years ago)

updating to apply to head

  • django/core/handlers/base.py

    class BaseHandler(object):  
    7373        from django.conf import settings
    7474
    7575        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
    8281
     82            try:
    8383                # Apply request middleware
    8484                for middleware_method in self._request_middleware:
    8585                    response = middleware_method(request)
Back to Top