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
This commit is contained in:
Adrian Holovaty 2005-11-16 02:59:22 +00:00
parent b2424a391a
commit 93519513a1
1 changed files with 6 additions and 2 deletions

View File

@ -246,11 +246,12 @@ variables:
* ``user`` -- An ``auth.User`` instance representing the currently * ``user`` -- An ``auth.User`` instance representing the currently
logged-in user (or an ``AnonymousUser`` instance, if the client isn't 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 * ``messages`` -- A list of ``auth.Message`` objects for the currently
logged-in user. logged-in user.
* ``perms`` -- An instance of ``django.core.extensions.PermWrapper``, * ``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`` Also, if your ``DEBUG`` setting is set to ``True``, every ``DjangoContext``
instance has the following two extra variables: 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'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. 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 Loading templates
----------------- -----------------