summaryrefslogtreecommitdiff
path: root/django/conf/project_template/settings.py
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2009-03-19 23:14:20 +0000
committerLuke Plant <L.Plant.98@cantab.net>2009-03-19 23:14:20 +0000
commit2d287247308ea5e40214f4564b91b633959902a9 (patch)
tree4c90ff6298cfb332b2d0d7c383dee3e1d6641a69 /django/conf/project_template/settings.py
parent729c974e64ef26d2b6eacce50ba324124b13d461 (diff)
Added CSRF middleware to default settings and updated docs.
Updated docs to reflect the change, and the fact that using the two separate middleware is preferred to using the combined one. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/conf/project_template/settings.py')
-rw-r--r--django/conf/project_template/settings.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/conf/project_template/settings.py b/django/conf/project_template/settings.py
index bbf005ddea..4aec1b8c11 100644
--- a/django/conf/project_template/settings.py
+++ b/django/conf/project_template/settings.py
@@ -59,6 +59,8 @@ TEMPLATE_LOADERS = (
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
+ 'django.contrib.csrf.middleware.CsrfViewMiddleware',
+ 'django.contrib.csrf.middleware.CsrfResponseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
)