这里无效关键字的说法是错误: 'image' is an invalid keyword argument for this function
了解正在发生什么,以及如何解决这个问题,将不胜感激任何帮助。 基本上我有一个'合作伙伴'模型,它与'产品'模型有一对多的关系。我使用的是inlineFormSet,其中包含合作伙伴,图片,desc,价格等字段的'产品'模型。 表单在管理中正确显示,表单
我试图制作一个名为MuyPicky的Django开发网站。这是一个网站,可以让你根据你的挑剔找到餐馆和其他东西。我目前正在制作一个表格,将餐厅添加到数据库中。正如我在做这个,我得到这个错误: IntegrityError at /restaurants/create.
NOT NULL constraint failed: restaurants_restaurantlocation.name
假设,我有下面两个表: enter image description here 我做了models.py: class Score(models.Model):
Student_Id = models.CharField(max_length=20, primary_key=True)
Grade = models.CharField(max_length=30)