diff --git a/pyweb/settings.py b/pyweb/settings.py index cb822bb..7706bba 100644 --- a/pyweb/settings.py +++ b/pyweb/settings.py @@ -207,6 +207,8 @@ TEMPLATE_LOADERS = ( MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.middleware.csrf.CsrfResponseMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', )