1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Documented arguments for custom 500 error view.

This commit is contained in:
Dan Swain 2019-11-05 15:27:09 -05:00 committed by Mariusz Felisiak
parent 4b6db766ba
commit 422b875c65

View File

@ -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`.