django default template location

  1. Locate the "TEMPLATES" setting in the Django project's settings.py file.
  2. The "DIRS" option within the "TEMPLATES" setting specifies the list of directories where Django should look for templates.
  3. By default, the "DIRS" option is an empty list, so Django will look for templates in the "templates" subdirectory of each app in the project.
  4. If the project uses a different directory structure, the "DIRS" option can be modified to include the appropriate template directories.
  5. After updating the "DIRS" option, save the settings.py file and Django will now look for templates in the specified directories.