Ticket #14200: memoize.urlresolver.diff
File memoize.urlresolver.diff, 1.1 KB (added by , 14 years ago) |
---|
-
django/core/handlers/base.py
73 73 # Setup default url resolver for this thread. 74 74 urlconf = settings.ROOT_URLCONF 75 75 urlresolvers.set_urlconf(urlconf) 76 resolver = urlresolvers. RegexURLResolver(r'^/',urlconf)76 resolver = urlresolvers.get_resolver(urlconf) 77 77 78 78 # Apply request middleware 79 79 for middleware_method in self._request_middleware: … … 85 85 # Reset url resolver with a custom urlconf. 86 86 urlconf = request.urlconf 87 87 urlresolvers.set_urlconf(urlconf) 88 resolver = urlresolvers. RegexURLResolver(r'^/',urlconf)88 resolver = urlresolvers.get_resolver(urlconf) 89 89 90 90 callback, callback_args, callback_kwargs = resolver.resolve( 91 91 request.path_info)