diff options
| author | Marissa Zhou <marissa.zhou@propylon.com> | 2015-06-05 16:50:53 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-06-08 12:32:38 -0400 |
| commit | 8b1f39a727be91aab40bdb37235718ed63ae1d50 (patch) | |
| tree | 3e8fbbed5a58883851d947352ddc4eca68f5f679 /django/conf/project_template | |
| parent | 167a3203b645341a3b00b878594bfd8d4dd6b040 (diff) | |
Fixed #24796 -- Added a hint on placement of SecurityMiddleware in MIDDLEWARE_CLASSES.
Also moved it in the project template.
Diffstat (limited to 'django/conf/project_template')
| -rw-r--r-- | django/conf/project_template/project_name/settings.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/conf/project_template/project_name/settings.py b/django/conf/project_template/project_name/settings.py index e58e229c8a..aa9bae99ac 100644 --- a/django/conf/project_template/project_name/settings.py +++ b/django/conf/project_template/project_name/settings.py @@ -40,6 +40,7 @@ INSTALLED_APPS = [ ] MIDDLEWARE_CLASSES = [ + 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', @@ -47,7 +48,6 @@ MIDDLEWARE_CLASSES = [ 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', - 'django.middleware.security.SecurityMiddleware', ] ROOT_URLCONF = '{{ project_name }}.urls' |
