diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-11-16 02:59:22 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-11-16 02:59:22 +0000 |
| commit | 93519513a14e1c4990786bd0c5d6eb8e18e75d09 (patch) | |
| tree | ad21155343c9846e82cfdca26b100ac1c7b0a409 /docs | |
| parent | b2424a391a42a01b32b5fd9a337f93092d842ac8 (diff) | |
Added links to auth docs in docs/templates_python.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1261 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/templates_python.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/templates_python.txt b/docs/templates_python.txt index 81c423f33b..48c17c63ae 100644 --- a/docs/templates_python.txt +++ b/docs/templates_python.txt @@ -246,11 +246,12 @@ variables: * ``user`` -- An ``auth.User`` instance representing the currently logged-in user (or an ``AnonymousUser`` instance, if the client isn't - logged in). + logged in). See the `user authentication docs`. * ``messages`` -- A list of ``auth.Message`` objects for the currently logged-in user. * ``perms`` -- An instance of ``django.core.extensions.PermWrapper``, - representing the permissions that the currently logged-in user has. + representing the permissions that the currently logged-in user has. See + the `permissions docs`_. Also, if your ``DEBUG`` setting is set to ``True``, every ``DjangoContext`` instance has the following two extra variables: @@ -280,6 +281,9 @@ This technique has two caveats: * You'll have to be careful not to set the variable ``current_time`` when you populate this context. If you do, you'll override the other one. +.. _user authentication docs: http://www.djangoproject.com/documentation/models/authentication/#users +.. _permissions docs: http://www.djangoproject.com/documentation/models/authentication/#permissions + Loading templates ----------------- |
