settings: added locale middleware
Signed-off-by: rscnt <rascnt@gmail.com>
This commit is contained in:
parent
f0b5ea8966
commit
1107b41db0
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
# Quick-start development settings - unsuitable for production
|
# Quick-start development settings - unsuitable for production
|
||||||
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
|
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
|
||||||
|
|
||||||
SITE_ID = 4047
|
SITE_ID = 1
|
||||||
|
|
||||||
APP_ROOT_ENDPOINT = "/"
|
APP_ROOT_ENDPOINT = "/"
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ MIDDLEWARE_CLASSES = (
|
||||||
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
|
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
|
||||||
'django.contrib.messages.middleware.MessageMiddleware',
|
'django.contrib.messages.middleware.MessageMiddleware',
|
||||||
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
||||||
'django.middleware.security.SecurityMiddleware',
|
'django.middleware.locale.LocaleMiddleware',
|
||||||
# django-cms middlewares
|
# django-cms middlewares
|
||||||
'cms.middleware.user.CurrentUserMiddleware',
|
'cms.middleware.user.CurrentUserMiddleware',
|
||||||
'cms.middleware.page.CurrentPageMiddleware',
|
'cms.middleware.page.CurrentPageMiddleware',
|
||||||
|
|
Loading…
Reference in a new issue