From 063d2783047f5fc1218ace757fb3c0c519902a54 Mon Sep 17 00:00:00 2001 From: rscnt Date: Thu, 21 May 2015 01:21:08 -0600 Subject: [PATCH] settings: added locale middleware Signed-off-by: rscnt --- dynamicweb/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dynamicweb/settings.py b/dynamicweb/settings.py index 97101ee7..1ac0e22d 100644 --- a/dynamicweb/settings.py +++ b/dynamicweb/settings.py @@ -15,7 +15,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/ -SITE_ID = 4047 +SITE_ID = 1 APP_ROOT_ENDPOINT = "/" @@ -90,7 +90,7 @@ MIDDLEWARE_CLASSES = ( 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', - 'django.middleware.security.SecurityMiddleware', + 'django.middleware.locale.LocaleMiddleware', # django-cms middlewares 'cms.middleware.user.CurrentUserMiddleware', 'cms.middleware.page.CurrentPageMiddleware',