Estou tendo problemas com o html O jogoteca.py esta numa pasta e o list.html esta na pasta template.
File "C:\Users\jonat\Documents\Python\Alura\jogoteca\venv\lib\site-packages\flask\app.py", line 1612, in full_dispatch_request rv = self.dispatch_request() File "C:\Users\jonat\Documents\Python\Alura\jogoteca\venv\lib\site-packages\flask\app.py", line 1598, in dispatch_request return self.view_functionsrule.endpoint File "C:/Users/jonat/Documents/Python/Alura/jogoteca/jogoteca.py", line 7, in ola return render_template('list.html') File "C:\Users\jonat\Documents\Python\Alura\jogoteca\venv\lib\site-packages\flask\templating.py", line 133, in render_template return render(ctx.app.jinjaenv.get_or_select_template(template_name_or_list), File "C:\Users\jonat\Documents\Python\Alura\jogoteca\venv\lib\site-packages\jinja2\environment.py", line 930, in get_or_select_template return self.get_template(template_name_or_list, parent, globals) File "C:\Users\jonat\Documents\Python\Alura\jogoteca\venv\lib\site-packages\jinja2\environment.py", line 883, in get_template return self.loadtemplate(name, self.make_globals(globals)) File "C:\Users\jonat\Documents\Python\Alura\jogoteca\venv\lib\site-packages\jinja2\environment.py", line 857, in loadtemplate template = self.loader.load(self, name, globals) File "C:\Users\jonat\Documents\Python\Alura\jogoteca\venv\lib\site-packages\jinja2\loaders.py", line 117, in load source, filename, uptodate = self.get_source(environment, name) File "C:\Users\jonat\Documents\Python\Alura\jogoteca\venv\lib\site-packages\flask\templating.py", line 57, in get_source return self.getsource_fast(environment, template) File "C:\Users\jonat\Documents\Python\Alura\jogoteca\venv\lib\site-packages\flask\templating.py", line 85, in getsource_fast raise TemplateNotFound(template) jinja2.exceptions.TemplateNotFound: list.html 127.0.0.1 - - [11/Mar/2020 17:51:54] "GET /inicio HTTP/1.1" 500 -
e codigo em python
from flask import Flask, render_template
app = Flask(name)
@app.route('/inicio')
def ola():
return render_template('list.html')
app.run()