1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Fixed #24877 -- Added middleware handling of response.render() errors.

This commit is contained in:
Sylvain Fankhauser
2015-06-05 15:30:03 +02:00
committed by Tim Graham
parent b91a2a499f
commit f5d5867a4a
6 changed files with 47 additions and 10 deletions

View File

@@ -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`.