From 20a761697fd28c08ab82dec777b4056a5bfaf6a2 Mon Sep 17 00:00:00 2001 From: jkrzy Date: Fri, 18 Aug 2017 15:02:47 -0700 Subject: [PATCH] Fixed #27701 -- Doc'd staticfiles runserver bypasses middleware when serving static files. --- 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 2c2db21090..b8cadb5ec8 100644 --- a/docs/ref/contrib/staticfiles.txt +++ b/docs/ref/contrib/staticfiles.txt @@ -199,7 +199,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