I have set everything and and went all the ways could not solve my problem,
My flask website was working fine until I started another project in the same folder now it always shows same error "jinja2.exceptions.TemplateNotFound: index.html"[enter image description here][1]
I have saved .html and .py file in same folder named "templates", "static" folder is empty, code is just simple
from flask import Flask, render_template app = Flask(name)
@app.route('/')
def home(): return render_template('indexx.html')
app.run(debug=True) [1]: https://i.stack.imgur.com/vbNoW.png [2]: https://i.stack.imgur.com/YSGPq.png
Aucun commentaire:
Enregistrer un commentaire