[3.0.x] Documented arguments for custom 500 error view.
Backport of 422b875c65
from master
This commit is contained in:
parent
76d293f3e6
commit
5da7cbe3f6
|
@ -192,5 +192,5 @@ that should be called in case of server errors. Server errors happen when you
|
|||
have runtime errors in view code.
|
||||
|
||||
By default, this is :func:`django.views.defaults.server_error`. If you
|
||||
implement a custom view, be sure it returns an
|
||||
:class:`~django.http.HttpResponseServerError`.
|
||||
implement a custom view, be sure it accepts a ``request`` argument and returns
|
||||
an :class:`~django.http.HttpResponseServerError`.
|
||||
|
|
Loading…
Reference in New Issue