diff options
author | Adrian Holovaty <adrian@holovaty.com> | 2006-04-29 01:54:26 +0000 |
---|---|---|
committer | Adrian Holovaty <adrian@holovaty.com> | 2006-04-29 01:54:26 +0000 |
commit | fd70055334116f2c0689ba41238df37e393a3701 (patch) | |
tree | a91f0da8129a692717fd0f624854b1cdb4425b5c | |
parent | 674fc71d97db83997863a41a2055a42f12b654a2 (diff) | |
download | django-fd70055334116f2c0689ba41238df37e393a3701.tar.gz |
magic-removal: Proofread docs/middleware.txt
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2782 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r-- | docs/middleware.txt | 11 |
1 files changed, 10 insertions, 1 deletions
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 =========================== |