1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #25878 -- Documented requirement that handler404 return a 404 response.

This commit is contained in:
Tim Graham
2016-01-04 20:11:20 -05:00
parent 186b6c61bf
commit 49eeb0f570
2 changed files with 18 additions and 8 deletions

View File

@@ -1147,6 +1147,12 @@ Miscellaneous
* ``ForeignRelatedObjectsDescriptor`` is ``ReverseManyToOneDescriptor``
* ``ManyRelatedObjectsDescriptor`` is ``ManyToManyDescriptor``
* If you implement a custom :data:`~django.conf.urls.handler404` view, it must
return a response with an HTTP 404 status code. Use
:class:`~django.http.HttpResponseNotFound` or pass ``status=404`` to the
:class:`~django.http.HttpResponse`. Otherwise, :setting:`APPEND_SLASH` won't
work correctly with ``DEBUG=False``.
.. _deprecated-features-1.9:
Features deprecated in 1.9