I'm trying to create several relationships between some models such as User and Country. When I try to syncdb, my console outputs "Name Country is not defined".
Here is 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) # error hereclass Country(models.Model):name = models.CharField(max_length=50, null=False)
Could you please help me out with this one?