初学flask,在做一个项目时遇到了瓶颈。
项目中各个模块是独立的,通过api通信。数据库表全局可读,部分模块可写。
以前学的都是在同一个项目里用flask-sqlalchemy,但是模块独立的需求要求每个模块都通过一个app来包装接口。
这种情况下要怎么使用sqlalchemy?
认证高级PHP讲师
sqlalchemy is just an ORM
Do you just want to separate the modules? You can use blueprint啊。sqlalchemy It doesn’t matter how many projects you have. The same configuration can be used for multiple projects.
blueprint
sqlalchemy
sqlalchemy is just an ORM
Do you just want to separate the modules? You can use
blueprint
啊。sqlalchemy
It doesn’t matter how many projects you have. The same configuration can be used for multiple projects.