jinja2.exceptions.TemplateNotFound: index.html报错梳理

Flask应用目录
1.static 用于存放静态文件(例如:CSS文件)
2.templates 用于存放html模板,flask应用一般对应到templates目录下找响应页面

jinja2.exceptions.TemplateNotFound: index.html报错原因梳理‘
1.模板没有存在templates目录下,或者目录名称错误

2.应用即你服务的xxx.py文件,和templates没有在同一级别
jinja2.exceptions.TemplateNotFound: index.html报错梳理_第1张图片

你可能感兴趣的:(jinja2.exceptions.TemplateNotFound: index.html报错梳理)