- 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:
flask 只会查找相邻目录里的 templates
来源: http://www.bubuko.com/infodetail-3204150.html