Skip to content

Commit 02eeb6f

Browse files
authored
Change MIDDLEWARE_CLASSES to MIDDLEWARE (#8333)
The `MIDDLEWARE_CLASSES` setting got changed to `MIDDLEWARE` in [Django 1.10](https://docs.djangoproject.com/en/1.10/topics/http/middleware/).
1 parent 94eb804 commit 02eeb6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/topics/internationalization.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ You can change the default language by using the standard Django `LANGUAGE_CODE`
1717

1818
LANGUAGE_CODE = "es-es"
1919

20-
You can turn on per-request language requests by adding `LocalMiddleware` to your `MIDDLEWARE_CLASSES` setting:
20+
You can turn on per-request language requests by adding `LocalMiddleware` to your `MIDDLEWARE` setting:
2121

22-
MIDDLEWARE_CLASSES = [
22+
MIDDLEWARE = [
2323
...
2424
'django.middleware.locale.LocaleMiddleware'
2525
]
@@ -90,7 +90,7 @@ If you're only translating custom error messages that exist inside your project
9090

9191
## How the language is determined
9292

93-
If you want to allow per-request language preferences you'll need to include `django.middleware.locale.LocaleMiddleware` in your `MIDDLEWARE_CLASSES` setting.
93+
If you want to allow per-request language preferences you'll need to include `django.middleware.locale.LocaleMiddleware` in your `MIDDLEWARE` setting.
9494

9595
You can find more information on how the language preference is determined in the [Django documentation][django-language-preference]. For reference, the method is:
9696

0 commit comments

Comments
 (0)