django-urls

Last Updated :
Discuss
Comments

Where are URL patterns in Django stored so that the framework knows how to route requests?

In views.py only

In a module defined by ROOT_URLCONF, typically urls.py

Hard-coded into each template

In settings.py under a list called urlpatterns

Tags:
Share your thoughts in the comments