摘要: 1.Flask-Migrate的使用 flask-migrate相关配置: 1 from Application import app 2 from common.models.model import db 3 from flask_migrate import Migrate, MigrateC 阅读全文
posted @ 2021-07-20 15:35 千叶千影 阅读(2357) 评论(1) 推荐(0) 编辑
摘要: 1.自定义序列化 Result={} # 序列化 def serializer(self, obj_list): result = [obj.__dict__ for obj in obj_list] for res in result: res.pop('_sa_instance_state') 阅读全文
posted @ 2021-07-20 10:21 千叶千影 阅读(311) 评论(0) 推荐(1) 编辑