django-urls-3

Last Updated :
Discuss
Comments

What is the benefit of giving URL patterns a name= parameter in Django?

It automatically generates HTML for the view

It allows reverse URL lookup in templates and code without hard-coding the path

It prevents users from accessing the URL directly

It defines the HTTP method allowed for the view

Tags:
Share your thoughts in the comments