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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user