flash

Posted 思此狂

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了flash相关的知识,希望对你有一定的参考价值。

1 开启调试模式,修改代码后不需要手动重启

app = Flask(__name__)
app.debug = True

2 路由中的变量

@app.route(/<name>, methods=[GET, POST])
def home(name):
    return render_template(home.html,name=name)

 

以上是关于flash的主要内容,如果未能解决你的问题,请参考以下文章