Fixed #16606 - Typo in docs/ref/contrib/csrf.txt; thanks selwin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16612 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
e11c647d60
commit
f3bf62230a
|
@ -31,7 +31,7 @@ To enable CSRF protection for your views, follow these steps:
|
||||||
1. Add the middleware
|
1. Add the middleware
|
||||||
``'django.middleware.csrf.CsrfViewMiddleware'`` to your list of
|
``'django.middleware.csrf.CsrfViewMiddleware'`` to your list of
|
||||||
middleware classes, :setting:`MIDDLEWARE_CLASSES`. (It should come
|
middleware classes, :setting:`MIDDLEWARE_CLASSES`. (It should come
|
||||||
and before any view middleware that assume that CSRF attacks have
|
before any view middleware that assume that CSRF attacks have
|
||||||
been dealt with.)
|
been dealt with.)
|
||||||
|
|
||||||
Alternatively, you can use the decorator
|
Alternatively, you can use the decorator
|
||||||
|
|
Loading…
Reference in New Issue