summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorIacopo Spalletti <i.spalletti@nephila.it>2015-11-07 17:24:07 +0100
committerTim Graham <timograham@gmail.com>2016-01-14 07:05:38 -0500
commit21bf685f5e660a187fcac31e84d5cd89758aeb74 (patch)
tree04ff69e8a2f9ebeee8b1097fd2af8aceebd535f7 /docs/ref
parent8d5d472c6ddf42bacff72e533e7cfa08593fcd1a (diff)
Fixed #25697 -- Made default error views error when passed a nonexistent template_name.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/views.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/ref/views.txt b/docs/ref/views.txt
index 133a79814b..8069264039 100644
--- a/docs/ref/views.txt
+++ b/docs/ref/views.txt
@@ -93,6 +93,10 @@ Three things to note about 404 views:
second parameter, the exception that triggered the error. A useful
representation of the exception is also passed in the template context.
+.. versionchanged:: 1.10
+
+ Passing a nonexistent ``template_name`` will raise ``TemplateDoesNotExist``.
+
.. _http_internal_server_error_view:
The 500 (server error) view
@@ -113,6 +117,10 @@ If :setting:`DEBUG` is set to ``True`` (in your settings module), then
your 500 view will never be used, and the traceback will be displayed
instead, with some debug information.
+.. versionchanged:: 1.10
+
+ Passing a nonexistent ``template_name`` will raise ``TemplateDoesNotExist``.
+
.. _http_forbidden_view:
The 403 (HTTP Forbidden) view
@@ -148,6 +156,10 @@ view you can use code like this::
unicode representation of the exception is also passed in the template
context.
+.. versionchanged:: 1.10
+
+ Passing a nonexistent ``template_name`` will raise ``TemplateDoesNotExist``.
+
.. _http_bad_request_view:
The 400 (bad request) view
@@ -173,3 +185,7 @@ filesystem paths.
The signature of ``bad_request()`` changed in Django 1.9. The function
now accepts a second parameter, the exception that triggered the error.
+
+.. versionchanged:: 1.10
+
+ Passing a nonexistent ``template_name`` will raise ``TemplateDoesNotExist``.