1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > Python flask实战订餐系统微信小程序-16后台管理系统其他页面调整

Python flask实战订餐系统微信小程序-16后台管理系统其他页面调整

时间:2020-10-03 09:57:37

相关推荐

Python flask实战订餐系统微信小程序-16后台管理系统其他页面调整

后台管理系统其他页面调整

B站配套视频教程观看

为了快速完成调整,直接将配置好的文件夹拷贝过来:

再www.py文件中引入对应的路由

# -*- coding: utf-8 -*-from application import appfrom web.controllers.index import route_indexfrom web.controllers.user.User import route_userfrom web.controllers.static import route_staticfrom web.controllers.account.Account import route_accountfrom web.controllers.finance.Finance import route_financefrom web.controllers.food.Food import route_foodfrom web.controllers.member.Member import route_memberfrom web.controllers.stat.Stat import route_statapp.register_blueprint( route_index,url_prefix = "/" )app.register_blueprint( route_user,url_prefix = "/user" )app.register_blueprint( route_static,url_prefix = "/static" )app.register_blueprint( route_account,url_prefix = "/account" )app.register_blueprint( route_finance,url_prefix = "/finance" )app.register_blueprint( route_food,url_prefix = "/food" )app.register_blueprint( route_member,url_prefix = "/member" )app.register_blueprint( route_stat,url_prefix = "/stat" )

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。