python-flask和Vue两种模式初模板
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
# 文件路径: app/extensions.py
|
||||
from flask_sqlalchemy import SQLAlchemy
|
||||
from flask_marshmallow import Marshmallow
|
||||
from flask_migrate import Migrate
|
||||
from flask_cors import CORS # 解决前后端跨域问题
|
||||
|
||||
# 初始化数据库和序列化工具
|
||||
db = SQLAlchemy()
|
||||
ma = Marshmallow()
|
||||
migrate = Migrate()
|
||||
cors = CORS()
|
||||
Reference in New Issue
Block a user