settings: added django-cms middlewares.
Signed-off-by: rscnt <rascnt@gmail.com>
This commit is contained in:
parent
7a386806f9
commit
f514198f7a
1 changed files with 6 additions and 0 deletions
|
@ -85,6 +85,12 @@ MIDDLEWARE_CLASSES = (
|
||||||
'django.contrib.messages.middleware.MessageMiddleware',
|
'django.contrib.messages.middleware.MessageMiddleware',
|
||||||
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
||||||
'django.middleware.security.SecurityMiddleware',
|
'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'
|
ROOT_URLCONF = 'dynamicweb.urls'
|
||||||
|
|
Loading…
Reference in a new issue