首页 > 解决方案 > 当我在 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()


标签: pythonflask

解决方案


推荐阅读