mirror of
https://github.com/django/django.git
synced 2025-07-12 05:39:11 +00:00
[2.2.x] Documented arguments for custom 500 error view.
Backport of 422b875c6586a6548c6bf34a0851ae82198a8818 from master
This commit is contained in:
parent
9f81af4be4
commit
8b14545d36
@ -192,5 +192,5 @@ that should be called in case of server errors. Server errors happen when you
|
|||||||
have runtime errors in view code.
|
have runtime errors in view code.
|
||||||
|
|
||||||
By default, this is :func:`django.views.defaults.server_error`. If you
|
By default, this is :func:`django.views.defaults.server_error`. If you
|
||||||
implement a custom view, be sure it returns an
|
implement a custom view, be sure it accepts a ``request`` argument and returns
|
||||||
:class:`~django.http.HttpResponseServerError`.
|
an :class:`~django.http.HttpResponseServerError`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user