Updated all refs to default middleware in docs.
(adding CSRF, removing XView which is no longer a default) git-svn-id: http://code.djangoproject.com/svn/django/trunk@10095 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
2d28724730
commit
4e7a4eda3d
|
@ -760,10 +760,11 @@ MIDDLEWARE_CLASSES
|
||||||
|
|
||||||
Default::
|
Default::
|
||||||
|
|
||||||
("django.contrib.sessions.middleware.SessionMiddleware",
|
("django.contrib.csrf.middleware.CsrfViewMiddleware",
|
||||||
|
"django.contrib.csrf.middleware.CsrfResponseMiddleware",
|
||||||
|
"django.contrib.sessions.middleware.SessionMiddleware",
|
||||||
"django.contrib.auth.middleware.AuthenticationMiddleware",
|
"django.contrib.auth.middleware.AuthenticationMiddleware",
|
||||||
"django.middleware.common.CommonMiddleware",
|
"django.middleware.common.CommonMiddleware")
|
||||||
"django.middleware.doc.XViewMiddleware")
|
|
||||||
|
|
||||||
A tuple of middleware classes to use. See :ref:`topics-http-middleware`.
|
A tuple of middleware classes to use. See :ref:`topics-http-middleware`.
|
||||||
|
|
||||||
|
|
|
@ -28,9 +28,10 @@ created by :djadmin:`django-admin.py startproject <startproject>`::
|
||||||
|
|
||||||
MIDDLEWARE_CLASSES = (
|
MIDDLEWARE_CLASSES = (
|
||||||
'django.middleware.common.CommonMiddleware',
|
'django.middleware.common.CommonMiddleware',
|
||||||
|
'django.contrib.csrf.middleware.CsrfViewMiddleware',
|
||||||
|
'django.contrib.csrf.middleware.CsrfResponseMiddleware',
|
||||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||||
'django.middleware.doc.XViewMiddleware',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
During the request phases (:meth:`process_request` and :meth:`process_view`
|
During the request phases (:meth:`process_request` and :meth:`process_view`
|
||||||
|
|
Loading…
Reference in New Issue