首页 > flask中使用blueprint不能正常显示,而是显示404 Not Found

flask中使用blueprint不能正常显示,而是显示404 Not Found

Not Found

The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
页面提示的404
先看下我的目录结构

my_bbs/__init__.py内容:

my_bbs/users/__init__.py内容:

my_bbs/users/views.py内容:

这里有两个问题.
一.就是views.py中使用from my_bbs import app的app也是有问题.
在路由添加中不能正常显示页面,但可以正常运行.
使用from my_bbs.__init__.py import app就可以使用
二.我在使用blueprint时,使用可插拔视图

使用蓝图不能正常显示前端页面,使用app就可以

我这里有哪些问题,谢谢,看了一天也没发现.

【热门文章】
【热门文章】