3
"index.html"
をrender_template
に渡すと、PyCharmのコードエディタにポップアップメッセージTemplate file 'index.html' not found
が表示されます。テンプレートtemplates/index.html
が存在します。 http://localhost:5000/
にアクセスするとテンプレートがレンダリングされます。テンプレートが存在することをPyCharmに伝えるにはどうすればよいですか?PyCharmは存在するFlaskテンプレートを見つけることができません
@app.route('/')
def index():
return render_template('index.html')