File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ def validate_settings():
24
24
if 'django.core.context_processors.request' not in settings .TEMPLATE_CONTEXT_PROCESSORS :
25
25
raise ImproperlyConfigured ('django CMS requires django.core.context_processors.request in settings.TEMPLATE_CONTEXT_PROCESSORS to work correctly.' )
26
26
27
+ multilingual_middleware = 'cms.middleware.multilingual.MultilingualURLMiddleware'
28
+ locale_middleware = 'django.middleware.locale.LocaleMiddleware'
29
+
30
+ if multilingual_middleware in settings .MIDDLEWARE_CLASSES and locale_middleware in settings .MIDDLEWARE_CLASSES :
31
+ raise ImproperlyConfigured ('django CMS MultilingualURLMiddleware replaces django.middleware.locale.LocaleMiddleware! Please remove django.middleware.locale.LocaleMiddleware from your MIDDLEWARE_CLASSES settings.' )
32
+
27
33
28
34
def setup ():
29
35
"""
You can’t perform that action at this time.
0 commit comments