enable CsrfViewMiddleware
authorSofia Papagiannaki <papagian@gmail.com>
Tue, 22 May 2012 14:47:56 +0000 (17:47 +0300)
committerSofia Papagiannaki <papagian@gmail.com>
Tue, 22 May 2012 14:47:56 +0000 (17:47 +0300)
snf-astakos-app/astakos/im/synnefo_settings.py

index d698567..c63ae41 100644 (file)
@@ -48,6 +48,7 @@ installed_apps = [
 context_processors = [
     'django.core.context_processors.media',
     'django.core.context_processors.request',
+    'django.core.context_processors.csrf',
     'astakos.im.context_processors.media',
     'astakos.im.context_processors.im_modules',
     'astakos.im.context_processors.next',
@@ -62,7 +63,8 @@ middlware_classes = [
     'django.contrib.auth.middleware.AuthenticationMiddleware',
     'astakos.im.middleware.CookieAuthenticationMiddleware',
     'synnefo.lib.middleware.LoggingConfigMiddleware',
-    'synnefo.lib.middleware.SecureMiddleware'
+    'synnefo.lib.middleware.SecureMiddleware',
+    'django.middleware.csrf.CsrfViewMiddleware'
 ]
 
 loggers = {
@@ -85,4 +87,3 @@ USE_X_FORWARDED_HOST = False
 CUSTOM_USER_MODEL = 'astakos.im.AstakosUser'
 
 SESSION_COOKIE_SECURE = True
-