📜  jinja2.exceptions.templatenotfound: 模板 index.html 代码示例

📅  最后修改于: 2022-03-11 14:53:08.793000             🧑  作者: Mango

代码示例3
from flask import Flask, render_template
app = Flask(__name__)
@app.route("/profile/")
def profile(name):
    return render_template('profile.html', name=name)
if __name__ == "__main__":
    app.run(debug=True)