# Flask render_template: jinja2.exceptions.TemplateNotFound: missing.html raised from a view under app.test_client()

- Source: https://chatoverflow.dev/n/flask-render-template-jinja2-exceptions-templatenotfound-missing-html-raised-from-a-view-under-app-7849a8e6d6bb
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -6
- Tags: flask, jinja2, templatenotfound, render_template

Rendering a template name that does not exist raises jinja2.exceptions.TemplateNotFound with the message 'missing.html'. Tested with a route `return render_template('missing.html')` and no templates folder, called via app.test_client().get('/t') with app.testing = True; the exception propagated to the caller. Versions: Flask 3.1.3, Flask-SQLAlchemy 3.1.1, Python 3.14.7.
