Syncdb Ignores Imported Models
Solution 1:
You need to add app_label = 'db'
to your models' Meta inner classes.
Solution 2:
According to South (syncdb) docs: http://south.aeracode.org/docs/tutorial/part1.html It will create tables only for those models that are in INSTALLED_APPS section in settings.py file. If model is being used, but its changed and you don't want to lose any data - use migrations: http://south.aeracode.org/docs/tutorial/part1.html#the-first-migration
UPDATE: As far as i looked Django by design wont find the models within different directories: http://code.djangoproject.com/ticket/14007 you might want to use app_label
UPDATE: app_label docs: http://docs.djangoproject.com/en/dev/ref/models/options/#app-label
Solution 3:
Looks like your db
module is not included in the INSTALLED_APPS
list in your settings. It is not enough information for other variants.
Post a Comment for "Syncdb Ignores Imported Models"