In Django, what is the name of the file used to define the URL patterns of an app?

  • links.py
  • patterns.py
  • routes.py
  • urls.py
In Django, the file used to define URL patterns for an app is usually named urls.py. This file maps URLs to views, helping Django route incoming requests to the appropriate view functions.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *