python - 当我在 html 文件中进行更改并运行烧瓶应用程序时,没有反映更改
问题描述
我是烧瓶的新手。
更改 index.html 文件的内容,然后再次运行 app.py ,更改不会得到反映。 我只看到了之前的 index.html 文件数据。
下面是代码片段,
from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def home():
return render_template("index.html")
if __name__ == '__main__':
app.run()
解决方案
推荐阅读
- mysql - 获取不使用索引的连接的 MySQL 查询列表
- android - AAPT 错误:属性“包”在
标记不是有效的 Android 包名称 - javascript - 无法访问 vuejs 中的 dom 元素
- javascript - 为什么 npm 不启动?
- javascript - 访问json对象时Javascipt打印未定义
- python - 故障图像有哪些我可以检测到的特征?
- python-sphinx - 是否可以在我的文档中包含外部 rst 文件?
- python - 使用字典在数据框的文本列中搜索关键字
- mysql - 行计数超过一千并且文件大小确认
- javascript - discord.js 异步函数捕获未触发