jinja2.exceptions.templatenotfound: templates/index.html
app = Flask(__name__, template_folder={path of template directory})
jinja2.exceptions.templatenotfound: templates/index.html
app = Flask(__name__, template_folder={path of template directory})
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)
jinja2.exceptions.templatenotfound: templates/index.html
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def home():
return render_template('home.html')
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)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us