mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Fixed #24877 -- Added middleware handling of response.render() errors.
This commit is contained in:
committed by
Tim Graham
parent
b91a2a499f
commit
f5d5867a4a
@@ -480,6 +480,9 @@ Requests and Responses
|
||||
:class:`~django.template.response.TemplateResponse`, commonly used with
|
||||
class-based views.
|
||||
|
||||
* Exceptions raised by the ``render()`` method are now passed to the
|
||||
``process_exception()`` method of each middleware.
|
||||
|
||||
* 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`.
|
||||
|
||||
Reference in New Issue
Block a user