summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2018-07-31 15:59:38 +0100
committerTim Graham <timograham@gmail.com>2018-07-31 21:09:36 -0400
commit0d8f26f32014ddfd3fee5419dedc9f5860d6a5e1 (patch)
tree9a6f797c0efd3fe6f1cdf58b715f42a5cf65194e /docs/ref
parent5f62efb5c860d527abec94682c0961322e93b1f0 (diff)
[2.1.x] Refs #24733 -- Documented arguments for custom error views.
Backport of 49f97b645fb1716cf69177558c41cf650a701eed from master
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/urls.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/ref/urls.txt b/docs/ref/urls.txt
index c7d157ad69..846869512a 100644
--- a/docs/ref/urls.txt
+++ b/docs/ref/urls.txt
@@ -165,8 +165,8 @@ that should be called if the HTTP client has sent a request that caused an error
condition and a response with a status code of 400.
By default, this is :func:`django.views.defaults.bad_request`. If you
-implement a custom view, be sure it returns an
-:class:`~django.http.HttpResponseBadRequest`.
+implement a custom view, be sure it accepts ``request`` and ``exception``
+arguments and returns an :class:`~django.http.HttpResponseBadRequest`.
``handler403``
==============
@@ -178,8 +178,8 @@ that should be called if the user doesn't have the permissions required to
access a resource.
By default, this is :func:`django.views.defaults.permission_denied`. If you
-implement a custom view, be sure it returns an
-:class:`~django.http.HttpResponseForbidden`.
+implement a custom view, be sure it accepts ``request`` and ``exception``
+arguments and returns an :class:`~django.http.HttpResponseForbidden`.
``handler404``
==============
@@ -190,8 +190,8 @@ A callable, or a string representing the full Python import path to the view
that should be called if none of the URL patterns match.
By default, this is :func:`django.views.defaults.page_not_found`. If you
-implement a custom view, be sure it returns an
-:class:`~django.http.HttpResponseNotFound`.
+implement a custom view, be sure it accepts ``request`` and ``exception``
+arguments and returns an :class:`~django.http.HttpResponseNotFound`.
``handler500``
==============