So, I am developing a project using Django, and I am trying to create some links between some models, such as User and Country. When I try to synchronize my console outputs, "Country name is not defined." Check the code:
class User(models.Model): name = models.CharField(max_length=50,null=False) email = models.EmailField(max_length=50,null=False) password = models.CharField(max_length=10,null=False) country = models.ForeignKey(Country,null=False)
Could you help me with this?
source share