mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #28548 -- Replaced 'middlewares' with 'middleware' in docs.
This commit is contained in:
parent
9e2bf65d6a
commit
da3a5cee4f
4 changed files with 3 additions and 4 deletions
|
@ -1944,7 +1944,7 @@ To use ``LocaleMiddleware``, add ``'django.middleware.locale.LocaleMiddleware'``
|
|||
to your :setting:`MIDDLEWARE` setting. Because middleware order matters, follow
|
||||
these guidelines:
|
||||
|
||||
* Make sure it's one of the first middlewares installed.
|
||||
* Make sure it's one of the first middleware installed.
|
||||
* It should come after ``SessionMiddleware``, because ``LocaleMiddleware``
|
||||
makes use of session data. And it should come before ``CommonMiddleware``
|
||||
because ``CommonMiddleware`` needs an activated language in order
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue