S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which function retrieves a single object or returns a 404 error?

  • (A) get()
  • (B) filter()
  • (C) get_object_or_404()
  • (D) retrieve()
  • Correct Answer - Option(C)
  • Views: 20
  • Filed under category Django
  • Hashtags:

Explanation by: Shyam Dubey
get_object_or_404 returns an object or raises Http404 if not found.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.