I am designing a simple model in Django(1.3) which has 3 fields and some META options.
class DataSource(models.Model):
title = models.CharField(max_length=255)
priority = models.IntegerField(unique=True)
read_only = models.BooleanField(default = False)
class Meta:
verbose_name = "Data Source"
verbose_name_plural = "Data Sources"
app_label = 'My Admin'
Now, this model’s table isn’t being created in the database when I syncdb.
What could be the reason?
Should I remove it?
If I want to keep it, what is(are) the solution(s)?
Read the documentation:
The app_label must be an app name. You don’t have an app called "My Admin".