Ticket #3187: urlconf.diff

File urlconf.diff, 684 bytes (added by Fredrik Lundh <fredrik@…>, 18 years ago)
  • django/core/handlers/base.py

     
    6060            if response:
    6161                return response
    6262
    63         resolver = urlresolvers.RegexURLResolver(r'^/', settings.ROOT_URLCONF)
     63        # Get urlconf from request object, if available.  Otherwise use default.
     64        urlconf = getattr(request, "urlconf", settings.ROOT_URLCONF)
     65
     66        resolver = urlresolvers.RegexURLResolver(r'^/', urlconf)
    6467        try:
    6568            callback, callback_args, callback_kwargs = resolver.resolve(request.path)
    6669
Back to Top