原文:TypeError: isinstance() arg 2 must be a type or tuple of types

TypeError: isinstance arg must be a type or tuple of types 在进行数据库迁移的时候,我们有时候会很倒霉的碰到这种情况,不要着急,其实解决方案很简单 亲测 其实主要的原因就是,你在进行数据库迁移的时候,比如,你有一个class User 模型类,但是里面有一个外键,那么,你必须要将这个外键的数据库先进行迁移之后,才能再次对这个外键进行添加并进 ...

2019-04-07 08:38 1 751 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM