From f514198f7a449b136a8d7d2d008c55efe46dc869 Mon Sep 17 00:00:00 2001 From: rscnt Date: Wed, 20 May 2015 22:39:30 -0600 Subject: [PATCH] settings: added django-cms middlewares. Signed-off-by: rscnt --- dynamicweb/settings.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dynamicweb/settings.py b/dynamicweb/settings.py index 32d84eb1..4a766efe 100644 --- a/dynamicweb/settings.py +++ b/dynamicweb/settings.py @@ -85,6 +85,12 @@ MIDDLEWARE_CLASSES = ( 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.security.SecurityMiddleware', + # django-cms middlewares + 'cms.middleware.user.CurrentUserMiddleware', + 'cms.middleware.page.CurrentPageMiddleware', + 'cms.middleware.toolbar.ToolbarMiddleware', + 'cms.middleware.language.LanguageCookieMiddleware', + # /djangocms-middlewares ) ROOT_URLCONF = 'dynamicweb.urls'