mirror of
https://github.com/django/django.git
synced 2025-07-18 16:49:13 +00:00
[1.8.x] Fixed #24796 -- Moved SecurityMiddleware in MIDDLEWARE_CLASSES docs.
Partial backport of 8b1f39a727be91aab40bdb37235718ed63ae1d50 from master
This commit is contained in:
parent
8edfdddbc8
commit
358ae4a687
@ -28,6 +28,7 @@ here's the default value created by :djadmin:`django-admin startproject
|
||||
<startproject>`::
|
||||
|
||||
MIDDLEWARE_CLASSES = (
|
||||
'django.middleware.security.SecurityMiddleware',
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
'django.middleware.csrf.CsrfViewMiddleware',
|
||||
@ -35,7 +36,6 @@ here's the default value created by :djadmin:`django-admin startproject
|
||||
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
|
||||
'django.contrib.messages.middleware.MessageMiddleware',
|
||||
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
||||
'django.middleware.security.SecurityMiddleware',
|
||||
)
|
||||
|
||||
A Django installation doesn't require any middleware —
|
||||
|
Loading…
x
Reference in New Issue
Block a user