summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorHasan Ramezani <hasan.r67@gmail.com>2021-04-09 13:17:46 +0430
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-04-09 10:48:10 +0200
commit0abbdc8ef635ba5b2eeb0145f4a07e0fe3956d32 (patch)
tree0d9a04248c73f432a5c910d1f6b9f1c0a6388be2 /docs
parent49e618f4af422d0c8828775ca7a0bbd48288a585 (diff)
[3.2.x] Fixed #32535 -- Added note about DEBUG_PROPAGATE_EXCEPTIONS setting to middleware docs.
Backport of fc268c8648d0d0375d01d36aa1f05f1172ff1566 from main
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/http/middleware.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/topics/http/middleware.txt b/docs/topics/http/middleware.txt
index 1626d16992..aa89f79e0c 100644
--- a/docs/topics/http/middleware.txt
+++ b/docs/topics/http/middleware.txt
@@ -286,6 +286,9 @@ if the very next middleware in the chain raises an
that exception; instead it will get an :class:`~django.http.HttpResponse`
object with a :attr:`~django.http.HttpResponse.status_code` of 404.
+You can set :setting:`DEBUG_PROPAGATE_EXCEPTIONS` to ``True`` to skip this
+conversion and propagate exceptions upwards.
+
.. _async-middleware:
Asynchronous support