flask 查找目录,

You put your template in the wrong place. From the Flask docs:

Flask will look for templates in the templates folder. So if your application is a module, this folder is next to that module, if it’s a package it’s actually inside your package: See the docs for more information: http://flask.pocoo.org/docs/quickstart/#rendering-templates

 

flask只会查找相邻目录里的templates

posted @ 2019-09-19 11:51  yjy888  阅读(218)  评论(0)    收藏  举报