A

Admin • 828.03K Points
Coach

Q. What does `@require_GET` do in Django views?

  • (A) Restricts to authenticated users
  • (B) Allows only GET requests
  • (C) Renders only HTML
  • (D) Cleans form data
  • Correct Answer - Option(B)
  • Views: 15
  • Filed under category Django
  • Hashtags:

Explanation by: Admin
`@require_GET` restricts the view to respond only to GET requests.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.