summaryrefslogtreecommitdiff
path: root/docs
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 17:02:40 -0400
commit49f97b645fb1716cf69177558c41cf650a701eed (patch)
tree327907e811241b896d7d666a280dca841ee8ebbb /docs
parentb4fa94aed8ec5209176c9fa88aba3eacdca837f3 (diff)
Refs #24733 -- Documented arguments for custom error views.
Diffstat (limited to 'docs')
-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 8a07b4046a..88720189d2 100644
--- a/docs/ref/urls.txt
+++ b/docs/ref/urls.txt
@@ -154,8 +154,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``
==============
@@ -167,8 +167,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``
==============
@@ -179,8 +179,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``
==============