1
0
mirror of https://github.com/django/django.git synced 2025-07-05 18:29:11 +00:00

magic-removal: Proofread docs/middleware.txt

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2782 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-04-29 01:54:26 +00:00
parent 674fc71d97
commit fd70055334

View File

@ -24,6 +24,8 @@ name. For example, here's the default ``MIDDLEWARE_CLASSES`` created by
MIDDLEWARE_CLASSES = ( MIDDLEWARE_CLASSES = (
"django.middleware.common.CommonMiddleware", "django.middleware.common.CommonMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.middleware.doc.XViewMiddleware", "django.middleware.doc.XViewMiddleware",
) )
@ -102,6 +104,14 @@ Enables session support. See the `session documentation`_.
.. _`session documentation`: http://www.djangoproject.com/documentation/sessions/ .. _`session documentation`: http://www.djangoproject.com/documentation/sessions/
django.contrib.auth.middleware.AuthenticationMiddleware
-------------------------------------------------------
Adds the ``user`` attribute, representing the currently-logged-in user, to
every incoming ``HttpRequest`` object. See `Authentication in Web requests`_.
.. _Authentication in Web requests: http://www.djangoproject.com/documentation/authentication/#authentication-in-web-requests
django.middleware.transaction.TransactionMiddleware django.middleware.transaction.TransactionMiddleware
--------------------------------------------------- ---------------------------------------------------
@ -118,7 +128,6 @@ See the `transaction management documentation`_.
.. _`transaction management documentation`: http://www.djangoproject.com/documentation/transaction/ .. _`transaction management documentation`: http://www.djangoproject.com/documentation/transaction/
Writing your own middleware Writing your own middleware
=========================== ===========================