PyCharm cannot find a Flask template that exists
PyCharm Code Editor displays popup message Template file 'index.html' not found
when submitting "index.html"
to render_template
. The template templates/index.html
exists. Access to the http://localhost:5000/
renders template. How do I tell PyCharm that a template exists?
@app.route('/')
def index():
return render_template('index.html')
+3
source to share