[英]django.db.utils.IntegrityError: NOT NULL constraint failed: app_users.key_value_id
Code has been removed, due to some protocol and i was also unable to delete this由于某些协议,代码已被删除,我也无法删除它
you can set null=True
and blank=True
in the model field which is causing you an error or you can delete the app and create it again with the same code this trick can also work.您可以在导致错误的 model 字段中设置null=True
和blank=True
,或者您可以删除应用程序并使用相同的代码重新创建它,这个技巧也可以工作。
But if you do not find solution then you can find several solutions here.但是,如果您没有找到解决方案,那么您可以在这里找到几个解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.