A

Admin • 833.24K Points
Coach

Q. Which view decorator restricts access to logged-in users?

  • (A) @user_required
  • (B) @secure_view
  • (C) @login_required
  • (D) @authenticated
  • Correct Answer - Option(C)
  • Views: 29
  • Filed under category Django
  • Hashtags:

Explanation by: Admin

`@login_required` allows only authenticated users to access the view.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.