项目启动,点击启动URL404
来源:2-6 目的:预习Flask

慕数据7555131
2023-01-30
想问一个课外的问题:
def register_blueprint(app):
from app.web import web
app.register_blueprint(web, url_prefix=’/finance’)
很奇怪,我在注册路由的时候加了个前缀 程序启动之后,直接点击返回
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
如果我把url_prefix=’/xx’ 去掉就可以了
备注:启动的地址,我给跳转到首页
这是什么问题?
写回答
1回答
-
7七月
2023-01-31
没太看懂,可否详细说明下
012023-01-31
相似问题