summaryrefslogtreecommitdiff
path: root/docs/middleware.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/middleware.txt')
-rw-r--r--docs/middleware.txt21
1 files changed, 3 insertions, 18 deletions
diff --git a/docs/middleware.txt b/docs/middleware.txt
index 33cb1a38e4..d920e88370 100644
--- a/docs/middleware.txt
+++ b/docs/middleware.txt
@@ -27,30 +27,15 @@ name. For example, here's the default ``MIDDLEWARE_CLASSES`` created by
"django.middleware.doc.XViewMiddleware",
)
-The default admin site has the following ``MIDDLEWARE_CLASSES`` set::
-
- MIDDLEWARE_CLASSES = (
- "django.middleware.sessions.SessionMiddleware",
- "django.middleware.admin.AdminUserRequired",
- "django.middleware.common.CommonMiddleware",
- )
-
Django applies middleware in the order it's defined in ``MIDDLEWARE_CLASSES``.
-For a regular (i.e., non-admin) Django installation, no middleware is required,
-but it's strongly suggested that you use ``CommonMiddleware``. For a Django
-admin site, ``SessionMiddleware`` and ``AdminUserRequired`` (in that order) are
-required.
+A Django installation doesn't require any middleware -- e.g.,
+``MIDDLEWARE_CLASSES`` can be empty, if you'd like -- but it's strongly
+suggested that you use ``CommonMiddleware``.
Available middleware
====================
-django.middleware.admin.AdminUserRequired
------------------------------------------
-
-Limits site access to valid users with the ``is_staff`` flag set. This is
-required by Django's admin, and this middleware requires ``SessionMiddleware``.
-
django.middleware.cache.CacheMiddleware
---------------------------------------