A

Admin • 833.24K Points
Coach

Q. What does the `reverse()` function in Django do?

  • (A) Reverse a string
  • (B) Reverse a queryset
  • (C) Return a URL path by its view name
  • (D) Reverse the order of a list
  • Correct Answer - Option(C)
  • Views: 27
  • Filed under category Django
  • Hashtags:

Explanation by: Admin

`reverse()` returns the URL of a view by using its name.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.