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

代码如图:

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

导入进去就行了

或者把导包方式修改为:

猜你喜欢

转载自www.cnblogs.com/aizm/p/10463145.html
今日推荐