我正在从this示例中学习Django表单。当我运行我的服务器时,我得到了django.core.exceptions.ImproperlyConfigured: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is prohibited (已解决的here)。解释pliese我可以将这两种方法与Django==2.2.6一起使用,以及它们<e
我试图覆盖令牌模型: user = models.OneToOneField(Customers, on_delete=models.CASCADE)django.core.exceptions.FieldError: Local field 'user' in class 'CustomerToken' clashes withfield of similar name from base class 'Token