diff options
author | Dan McGee <dan@archlinux.org> | 2010-06-05 12:58:31 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-06-05 12:58:31 -0500 |
commit | bad2825fab9f45f468414ed551bad9d987923600 (patch) | |
tree | 8e91d017ddbe2f28416395cb43f70644d509bd9f /settings.py | |
parent | 7646f8ea7ce19b404a0e57c85e5dd589b3a53371 (diff) |
Updates for CSRF protection in Django 1.2.X
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'settings.py')
-rw-r--r-- | settings.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/settings.py b/settings.py index 30f594e6..6c9a1183 100644 --- a/settings.py +++ b/settings.py @@ -46,6 +46,7 @@ TEMPLATE_LOADERS = ( MIDDLEWARE_CLASSES = ( 'main.middleware.UpdateCacheMiddleware', "django.contrib.sessions.middleware.SessionMiddleware", + 'django.middleware.csrf.CsrfViewMiddleware', "django.contrib.auth.middleware.AuthenticationMiddleware", 'django.middleware.http.ConditionalGetMiddleware', "django.middleware.common.CommonMiddleware", |