ORM使用中的BUG

AttributeError: 'function' object has no attribute '_set_parent_with_dispatch'

原因:orm字段类型不匹配,比如应该是db.Text而不是text

==========================================================

迁移时报错提示 没有发现表结构的变化
原因:在manage.py文件没有导入models,或者在models中没有继承db.Model

原文地址:https://www.cnblogs.com/sunmingduo/p/10297215.html