mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #14200 -- Added a fallback if HttpRequest.urlconf is None.
Made BaseHandler fall back to settings.ROOT_URLCONF if HttpRequest.urlconf is set to None, rather than raising ImproperlyConfigured.
This commit is contained in:
committed by
Tim Graham
parent
74402a5b0d
commit
738c0de300
@@ -435,6 +435,10 @@ Requests and Responses
|
||||
:class:`~django.template.response.TemplateResponse`, commonly used with
|
||||
class-based views.
|
||||
|
||||
* Request middleware can now set :attr:`HttpRequest.urlconf
|
||||
<django.http.HttpRequest.urlconf>` to ``None`` to revert any changes made
|
||||
by previous middleware and return to using the :setting:`ROOT_URLCONF`.
|
||||
|
||||
Tests
|
||||
^^^^^
|
||||
|
||||
|
||||
Reference in New Issue
Block a user