flask 报错 AttributeError: module 'Include.route' has no attribute 'name'

代码如图:

后来发现,是要把模块下的 声明的  Blueprint() 对象导入

导入进去就行了

 

或者把导包方式修改为:

 

posted @ 2019-03-02 21:48  爱做梦  阅读(2274)  评论(1编辑  收藏  举报