Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored March 19, 2009
7  docs/ref/settings.txt
@@ -760,10 +760,11 @@ MIDDLEWARE_CLASSES
760 760
 
761 761
 Default::
762 762
 
763  
-    ("django.contrib.sessions.middleware.SessionMiddleware",
  763
+    ("django.contrib.csrf.middleware.CsrfViewMiddleware",
  764
+     "django.contrib.csrf.middleware.CsrfResponseMiddleware",
  765
+     "django.contrib.sessions.middleware.SessionMiddleware",
764 766
      "django.contrib.auth.middleware.AuthenticationMiddleware",
765  
-     "django.middleware.common.CommonMiddleware",
766  
-     "django.middleware.doc.XViewMiddleware")
  767
+     "django.middleware.common.CommonMiddleware")
767 768
 
768 769
 A tuple of middleware classes to use. See :ref:`topics-http-middleware`.
769 770
 
3  docs/topics/http/middleware.txt
@@ -28,9 +28,10 @@ created by :djadmin:`django-admin.py startproject <startproject>`::
28 28
 
29 29
     MIDDLEWARE_CLASSES = (
30 30
         'django.middleware.common.CommonMiddleware',
  31
+        'django.contrib.csrf.middleware.CsrfViewMiddleware',
  32
+        'django.contrib.csrf.middleware.CsrfResponseMiddleware',
31 33
         'django.contrib.sessions.middleware.SessionMiddleware',
32 34
         'django.contrib.auth.middleware.AuthenticationMiddleware',
33  
-        'django.middleware.doc.XViewMiddleware',
34 35
     )
35 36
 
36 37
 During the request phases (:meth:`process_request` and :meth:`process_view`

0 notes on commit 4e7a4ed

Please sign in to comment.
Something went wrong with that request. Please try again.