Flask 报错:jinja2.exceptions.TemplateNotFound jinja2.exceptions.TemplateNotFound: bootstrap/base.html

报错内容:

首先看看是否注册了

bootstrap = Bootstrap(app)

然后查看页面文件中的单词是否写错或者没有关闭

{% extends 'bootstrap/base.html' %}
{% import 'bootstrap/wtf.html' as wtf %}

{% block content %}
{% endblock%}

猜你喜欢

转载自blog.csdn.net/qq_42142258/article/details/81349198