错误:执行python manage.py makemigrationsAttributeError: 'NoneType' object has no attribute 'is_relation'

解决方法:

    1.进去红线框文件中,找到下述方法

AttributeError: 'NoneType' object has no attribute 'is_relation'

增加该语句,print app_label + " " + self.model_name_lower + " " + self.name,修改成下述

AttributeError: 'NoneType' object has no attribute 'is_relation'

再执行python manage.py makemigrations。

2.报下述错误,找到红框的model ,删除该model下的所有migrations文件即可AttributeError: 'NoneType' object has no attribute 'is_relation'

 

AttributeError: 'NoneType' object has no attribute 'is_relation'

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
猜你喜欢
  • 2021-07-25
  • 2021-06-13
  • 2022-01-08
  • 2022-01-29
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案