S

Shyam Dubey • 3.70K Points
Extraordinary

Q. How do you refer to the current user in a Django template?

  • (A) request.user
  • (B) user
  • (C) this.user
  • (D) auth_user
  • Correct Answer - Option(A)
  • Views: 8
  • Filed under category Django
  • Hashtags:

Explanation by: Shyam Dubey
request.user is available in templates when the context processor is enabled.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.