TemplateDoesNotExist Python Origin: Application & API Last updated 12 Oct 2026

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 not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Application & API. Errors that are often confused with or caused by this one (click to open):

AttributeError — AttributeError: 'X' object has no attribute 'y' (Python)AttributeErrorConnectionRefusedError — ConnectionRefusedError: [Errno 111] Connection refused (Python)ConnectionRefusedErrorDisallowedHost — django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'x'. You may need to add 'x' to ALLOWED_HOSTS. (Python)DisallowedHostDjango CSRF — Forbidden (403) CSRF verification failed. Request aborted. (Python)Django CSRFDjango no such table — django.db.utils.OperationalError: no such table: app_model (Python)Django no such tableEvent loop is closed — RuntimeError: Event loop is closed (Python)Event loop is closedImproperlyConfigured — django.core.exceptions.ImproperlyConfigured: settings are not configured / SECRET_KEY must not be empty (Python)ImproperlyConfiguredNG8002 — Angular: NG8002: Can't bind to 'ngModel' since it isn't a known property of 'input' (Angular)NG8002TemplateD…

Explore the map of this error Full error map →

🧠 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.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.