Made default MIDDLEWARE_CLASSES same as in project_template.
And updated docs, and also corrected them about middleware by removing 'XViewMiddleware' git-svn-id: http://code.djangoproject.com/svn/django/trunk@10129 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
20f7e51493
commit
cdc8c61bc3
|
@ -301,11 +301,11 @@ DEFAULT_INDEX_TABLESPACE = ''
|
||||||
# this middleware classes will be applied in the order given, and in the
|
# this middleware classes will be applied in the order given, and in the
|
||||||
# response phase the middleware will be applied in reverse order.
|
# response phase the middleware will be applied in reverse order.
|
||||||
MIDDLEWARE_CLASSES = (
|
MIDDLEWARE_CLASSES = (
|
||||||
|
'django.middleware.common.CommonMiddleware',
|
||||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||||
# 'django.middleware.http.ConditionalGetMiddleware',
|
# 'django.middleware.http.ConditionalGetMiddleware',
|
||||||
# 'django.middleware.gzip.GZipMiddleware',
|
# 'django.middleware.gzip.GZipMiddleware',
|
||||||
'django.middleware.common.CommonMiddleware',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
############
|
############
|
||||||
|
|
|
@ -760,10 +760,9 @@ MIDDLEWARE_CLASSES
|
||||||
|
|
||||||
Default::
|
Default::
|
||||||
|
|
||||||
("django.contrib.sessions.middleware.SessionMiddleware",
|
('django.middleware.common.CommonMiddleware',
|
||||||
"django.contrib.auth.middleware.AuthenticationMiddleware",
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||||
"django.middleware.common.CommonMiddleware",
|
'django.contrib.auth.middleware.AuthenticationMiddleware',)
|
||||||
"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`.
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,6 @@ created by :djadmin:`django-admin.py startproject <startproject>`::
|
||||||
'django.middleware.common.CommonMiddleware',
|
'django.middleware.common.CommonMiddleware',
|
||||||
'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