flask-蓝图blueprint按功能块分开
摘要:
随着业务逻辑 的增多.视图函数不能都直接写在flask入口文件app.py中 需要按功能块将视图函数分别写到blueprint目录下单独的py文件中. 然后在app.py中对每个Blueprint对象进行注册. # app.py from blueprints.demo import bp as d 阅读全文
posted @ 2023-03-19 12:21 Yancy00 阅读(50) 评论(0) 推荐(0)
浙公网安备 33010602011771号