From 1625a8c8eba0b00ebdd1d7a8ba697b2729ec40ed Mon Sep 17 00:00:00 2001 From: Kaushik Chintam Date: Mon, 6 Dec 2021 07:52:03 +0530 Subject: [PATCH] Fixed #33048 -- Doc'd that DEBUG static files requests don't use middleware chain. --- docs/howto/static-files/index.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/howto/static-files/index.txt b/docs/howto/static-files/index.txt index a60f7f5c0e..e158e78bca 100644 --- a/docs/howto/static-files/index.txt +++ b/docs/howto/static-files/index.txt @@ -108,6 +108,10 @@ do this by adding the following snippet to your urls.py:: folder; it doesn't perform static files discovery like :mod:`django.contrib.staticfiles`. + Finally, static files are served via a wrapper at the WSGI application + layer. As a consequence, static files requests do not pass through the + normal :doc:`middleware chain `. + .. _serving-uploaded-files-in-development: Serving files uploaded by a user during development