Explorar o código

Fixed #32535 -- Added note about DEBUG_PROPAGATE_EXCEPTIONS setting to middleware docs.

Hasan Ramezani %!s(int64=4) %!d(string=hai) anos
pai
achega
fc268c8648
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      docs/topics/http/middleware.txt

+ 3 - 0
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