From fd70055334116f2c0689ba41238df37e393a3701 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sat, 29 Apr 2006 01:54:26 +0000 Subject: magic-removal: Proofread docs/middleware.txt git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2782 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/middleware.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/middleware.txt b/docs/middleware.txt index 478a1f79be..1fec98a39f 100644 --- a/docs/middleware.txt +++ b/docs/middleware.txt @@ -24,6 +24,8 @@ name. For example, here's the default ``MIDDLEWARE_CLASSES`` created by MIDDLEWARE_CLASSES = ( "django.middleware.common.CommonMiddleware", + "django.contrib.sessions.middleware.SessionMiddleware", + "django.contrib.auth.middleware.AuthenticationMiddleware", "django.middleware.doc.XViewMiddleware", ) @@ -102,6 +104,14 @@ Enables session support. See the `session documentation`_. .. _`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 --------------------------------------------------- @@ -118,7 +128,6 @@ See the `transaction management documentation`_. .. _`transaction management documentation`: http://www.djangoproject.com/documentation/transaction/ - Writing your own middleware =========================== -- cgit v1.2.1