mirror of
https://github.com/django/django.git
synced 2025-02-19 05:45:48 +00:00
Removed LocaleMiddleware from settings template.
It was added in 3f1c7b70537330435e2ec2fca9550f7b7fa4372e. Single language sites should always be translated in LANGUAGE_CODE, regardless of the browser's Accept-Language. Having LocaleMiddleware enabled can result in having some parts, like the admin, translated in an unexpected language, typically if someone browses a non-English website on a system set up in English. Since most websites won't be translated in multiple languages — especially at the time they're created — it's better not to enable LocaleMiddleware by default. Thanks Ramiro for the feedback.
This commit is contained in:
parent
d7fa80258b
commit
23229061fc
@ -40,7 +40,6 @@ INSTALLED_APPS = (
|
||||
|
||||
MIDDLEWARE_CLASSES = (
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'django.middleware.locale.LocaleMiddleware',
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
'django.middleware.csrf.CsrfViewMiddleware',
|
||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||
|
Loading…
x
Reference in New Issue
Block a user