Updated readme to note that CsrfMiddleware must be listed after AuthenticationMiddleware.

This commit is contained in:
Ricky Rosario 2011-04-25 17:09:30 -04:00
Родитель e47cb576ee
Коммит 66ec98b129
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -29,9 +29,12 @@ Replace ``django.core.context_processors.csrf`` with
)
Replace ``django.middleware.csrf.CsrfViewMiddleware`` with
``session_csrf.CsrfMiddleware`` in your ``MIDDLEWARE_CLASSES``::
``session_csrf.CsrfMiddleware`` in your ``MIDDLEWARE_CLASSES``
and make sure it is listed after the AuthenticationMiddleware::
MIDDLEWARE_CLASSES = (
...
'django.contrib.auth.middleware.AuthenticationMiddleware',
...
'session_csrf.CsrfMiddleware',
...