Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 4e7a4eda3d442f44f778bddb5668ba1e4947559f 1 parent 2d28724
Luke Plant spookylukey authored
Showing with 6 additions and 4 deletions.
  1. +4 −3 docs/ref/settings.txt
  2. +2 −1  docs/topics/http/middleware.txt
7 docs/ref/settings.txt
View
@@ -760,10 +760,11 @@ MIDDLEWARE_CLASSES
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.middleware.common.CommonMiddleware",
- "django.middleware.doc.XViewMiddleware")
+ "django.middleware.common.CommonMiddleware")
A tuple of middleware classes to use. See :ref:`topics-http-middleware`.
3  docs/topics/http/middleware.txt
View
@@ -28,9 +28,10 @@ created by :djadmin:`django-admin.py startproject <startproject>`::
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
+ 'django.contrib.csrf.middleware.CsrfViewMiddleware',
+ 'django.contrib.csrf.middleware.CsrfResponseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.middleware.doc.XViewMiddleware',
)
During the request phases (:meth:`process_request` and :meth:`process_view`
Please sign in to comment.
Something went wrong with that request. Please try again.