mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
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
2 changed files with 6 additions and 4 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue