auth.context_processors.auth()

auth() [source]

If this processor is enabled, every RequestContext will contain these variables:

  • user – An auth.User instance representing the currently logged-in user (or an AnonymousUser instance, if the client isn’t logged in).
  • perms – An instance of django.contrib.auth.context_processors.PermWrapper, representing the permissions that the currently logged-in user has.
doc_Django
2016-10-09 18:34:07
Comments
Leave a Comment

Please login to continue.