简体   繁体   English

django.db.utils.IntegrityError: NOT NULL 约束失败:app_users.key_value_id

[英]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=Trueblank=True ,或者您可以删除应用程序并使用相同的代码重新创建它,这个技巧也可以工作。

But if you do not find solution then you can find several solutions here.但是,如果您没有找到解决方案,那么您可以在这里找到几个解决方案。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 django.db.utils.IntegrityError:NOT NULL 约束失败:users_profile.user_id - django.db.utils.IntegrityError: NOT NULL constraint failed: users_profile.user_id django.db.utils.IntegrityError:NOT NULL 约束失败:app.area_id - django.db.utils.IntegrityError: NOT NULL constraint failed: app.area_id django.db.utils.IntegrityError: NOT NULL 约束失败:new__inventory_app_item.accounting_class_id - django.db.utils.IntegrityError: NOT NULL constraint failed: new__inventory_app_item.accounting_class_id django.db.utils.IntegrityError: FOREIGN KEY 约束在 django 中失败 - django.db.utils.IntegrityError: FOREIGN KEY constraint failed in django Createsuperuser django.db.utils.IntegrityError: NOT NULL 约束失败 - Createsuperuser django.db.utils.IntegrityError: NOT NULL constraint failed django.db.utils.IntegrityError:NOT NULL约束失败 - django.db.utils.IntegrityError: NOT NULL constraint failed django.db.utils.IntegrityError: NOT NULL 约束失败: - django.db.utils.IntegrityError: NOT NULL constraint failed: django.db.utils.IntegrityError: NOT NULL 约束失败来自 Postman - django.db.utils.IntegrityError: NOT NULL constraint failed fom Postman django.db.utils.IntegrityError: FOREIGN KEY 约束失败 - django.db.utils.IntegrityError: FOREIGN KEY constraint failed django.db.utils.IntegrityError:NOT NULL 约束失败:new__users_personal_detail.husband_adhaarcopy - django.db.utils.IntegrityError: NOT NULL constraint failed: new__users_personal_detail.husband_adhaarcopy
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM