From 046b8c80ce76ed1d410910aa92f67c405b8a15ba Mon Sep 17 00:00:00 2001 From: jkrzy Date: Fri, 18 Aug 2017 15:02:47 -0700 Subject: [PATCH] [1.11.x] Fixed #27701 -- Doc'd staticfiles runserver bypasses middleware when serving static files. Backport of 20a761697fd28c08ab82dec777b4056a5bfaf6a2 from master --- docs/ref/contrib/staticfiles.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt index b8d91fddb8..74f8a127fb 100644 --- a/docs/ref/contrib/staticfiles.txt +++ b/docs/ref/contrib/staticfiles.txt @@ -201,7 +201,9 @@ the directories which were searched:: Overrides the core :djadmin:`runserver` command if the ``staticfiles`` app is :setting:`installed` and adds automatic serving of static -files and the following new options. +files. File serving doesn't run through :setting:`MIDDLEWARE`. + +The command adds these options: .. django-admin-option:: --nostatic