摘要:
1.Flask-Migrate的使用 flask-migrate相关配置: 1 from Application import app 2 from common.models.model import db 3 from flask_migrate import Migrate, MigrateC 阅读全文
摘要:
1.自定义序列化 Result={} # 序列化 def serializer(self, obj_list): result = [obj.__dict__ for obj in obj_list] for res in result: res.pop('_sa_instance_state') 阅读全文