jinja2.exceptions.TemplateNotFound:bootstrap/base.html [英] jinja2.exceptions.TemplateNotFound: bootstrap/base.html
本文介绍了jinja2.exceptions.TemplateNotFound:bootstrap/base.html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
安装Bootstrap Flask扩展名后,我在Flask应用程序中继承了 bootstrap/base.html ,但出现以下错误:
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
推荐答案
您需要通过以下方式导入Bootstrap:
You need to import Bootstrap in this way below:
from flask_bootstrap import Bootstrap
...
bootstrap = Bootstrap(app)
flask.ext.bootstrap已弃用
flask.ext.bootstrap is deprecated
这篇关于jinja2.exceptions.TemplateNotFound:bootstrap/base.html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文