首页 > 其他 > 详细

flask 查找目录,

时间:2019-09-19 12:05:53      阅读:134      评论:0      收藏:0      [点我收藏+]

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

flask 查找目录,

原文:https://www.cnblogs.com/yjybupt/p/11548281.html

(1)
(1)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!