A

Admin • 828.03K Points
Coach

Q. Which is the correct way to define URL patterns in Django?

  • (A) path() or re_path()
  • (B) url() only
  • (C) route()
  • (D) set_url()
  • Correct Answer - Option(A)
  • Views: 13
  • Filed under category Django
  • Hashtags:

Explanation by: Admin
`path()` and `re_path()` are the preferred functions for URL routing in Django 2.0+.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.