I try to open a index.html using Flask
run.py
from app import app
app.run(debug = True)
__init__.py
from flask import Flask
app = Flask(__name__)
from app import routes
routes.py
from flask import render_template
from app import app
@app.route('/')
@app.route('/index')
def index():
user = 'Cala'
return render_template('index.html', user=user)
index.html
<html>
<body>
{% for user in users %}
<h1>Hola {{ user }}</h1>
<h1>Bienvenido a Olivanders</h1>
{% endfor %}
</body>
</html>
When i run the run.py file i have the error jinja2.exceptions.TemplateNotFound: index.html
The files are in the filed called app except the run.py, this filed is in the general filed