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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.