Ticket #15695: base.py.patch

File base.py.patch, 1.1 KB (added by nischu7, 4 years ago)

patch of "django/core/handlers/base.py"

  • base.py

    old new  
    9797                        urlresolvers.set_urlconf(urlconf)
    9898                        resolver = urlresolvers.RegexURLResolver(r'^/', urlconf)
    9999
    100                     callback, callback_args, callback_kwargs = resolver.resolve(
    101                             request.path_info)
     100                    #callback, callback_args, callback_kwargs = resolver.resolve(
     101                    #        request.path_info)
     102
     103                    resolver_match = resolver.resolve(request.path_info)
     104                                        #callback, callback_args, callback_kwargs = resolver_match
     105
     106                    # more efficient than invoking __getitem__ of the match object
     107                    callback = resolver_match.func
     108                    callback_args = resolver_match.args
     109                    callback_kwargs = resolver_match.kwargs
     110
     111                    request.url_name = resolver_match.url_name
    102112
    103113                    # Apply view middleware
    104114                    for middleware_method in self._view_middleware:
Back to Top