Answers for "jinja2.exceptions.templatenotfound jinja2.exceptions.templatenotfound: main"

0

jinja2.exceptions.templatenotfound: templates/index.html

from flask import Flask, render_template
app = Flask(__name__)
@app.route("/profile/<name>")
def profile(name):
    return render_template('profile.html', name=name)
if __name__ == "__main__":
    app.run(debug=True)
Posted by: Guest on January-04-2021

Browse Popular Code Answers by Language