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
The answer is correct.
You can test settings in the execution file, for example: flaskr/flaskr.py
from flask_bootstrap import Bootstrap
....
app = Flask(__name__)
bootstrap = Bootstrap(app)
db = SQLAlchemy(app)
The problem should have been solved.
You need to import Bootstrap in this way below:
from flask_bootstrap import Bootstrap
...
bootstrap = Bootstrap(app)
flask.ext.bootstrap is deprecated
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With