Answers for "jinja2.exceptions.templatenotfound: client.html"

0

jinja2.exceptions.TemplateNotFound: index.html

from flask import Flask,render_template

app=Flask(__name__,template_folder='template')


@app.route("/")
def home():
    return render_template('home.html')

@app.route("/about/")
def about():
    return render_template('about.html')

if __name__=="__main__":
    app.run(debug=True)
Posted by: Guest on June-07-2021

Browse Popular Code Answers by Language