TemplateDoesNotExist 🐍 Python

django.template.exceptions.TemplateDoesNotExist: app/page.html

Django searched all template directories and couldn’t find that template.

Seen on: Python

Meaning

The debug page lists every path the loaders tried. Usually the app isn’t in INSTALLED_APPS, the folder layout misses the app-name subfolder, or TEMPLATES['DIRS'] is wrong.

Common causes

  • App not in INSTALLED_APPS
  • Template not in app/templates/app/
  • TEMPLATES DIRS missing BASE_DIR / "templates"
  • Typo/case in the template name

⚡ Quick fix

  1. Check the “Template-loader postmortem” paths
  2. Use app/templates/<app>/<name>.html
  3. Add the project templates folder to DIRS

Detailed fix by platform

Python

  1. TEMPLATES[0]["DIRS"] = [BASE_DIR / "templates"]

How to diagnose

  1. Paths — Which paths were searched?
  2. Name — Exact template name

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.