nal*_*zok 5 python pycharm flask
PyCharm的代码编辑器显示弹出式消息Template file 'index.html' not found传递的时候"index.html"给render_template.模板templates/index.html存在.访问http://localhost:5000/呈现模板.如何告诉PyCharm该模板是否存在?
@app.route('/')
def index():
return render_template('index.html')
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
781 次 |
| 最近记录: |