jinja2.exceptions.TemplateNotFound: bootstrap/base.html

Ameida picture Ameida · Jun 2, 2017 · Viewed 13k times · Source

I'm inheriting bootstrap/base.html in a Flask application after installing the Bootstrap Flask extension but having the below error:

jinja2.exceptions.TemplateNotFound: bootstrap/base.html

Answer

user83655 picture user83655 · Aug 2, 2017

You need to import Bootstrap in this way below:

from flask_bootstrap import Bootstrap
...
bootstrap = Bootstrap(app)

flask.ext.bootstrap is deprecated