tengo un problema TemplateNotFound
jinja2.exceptions.TemplateNotFound: index.html
Traceback (most recent call last
mi código esta así
from flask import Flask, render_template # IMPORTAMOS LIBRERIA
app=Flask(name) # CREAMOS UNA VARIABLE PARA ALMACENAR LA APLICACION
app.route(‘/)’ va a la raiz que seria el return codigofacilitodef index():
data={
‘titulo’:’Index’ ,
‘encabezado’: ‘bienvenidos’
}
# “ Bienvenido a este curso CodigoFacilito”
return render_template(‘index.html’)
@app.route(‘/holaM’)
def holaM():
return “holaM”
if name == ‘main’:
app.add_url_rule('/', view_func=index)
# COMPROBANDO SI VAMOS A LANZAR LA APP CON EL SERVIDOR CON EL METODO RUN
app.run(debug=True, port=5001)