A

Admin • 828.03K Points
Coach

Q. Which decorator is used to make a function view accept only POST requests?

  • (A) @only_post
  • (B) @post_only
  • (C) @require_POST
  • (D) @accept_post
  • Correct Answer - Option(C)
  • Views: 10
  • Filed under category Django
  • Hashtags:

Explanation by: Admin
`@require_POST` ensures the view only handles POST requests.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.