I have a Django project which has two apps (one created as debug test). For the debug test, syncdb does put the model in the database but for the other it does not.
- Both are in
settings.INSTALLED_APPS
. - There are around seven models, none of them being recognized.
- Neither the server, any page or the syncdb-console give any errors.
- Models are in a models directory. As a test, there is also one in app/models.py (doesn't work either).
- Most strikingly to me is that the below code does display the models which aren't synced (executed from the app that is skipped):
for model in get_models():
models.append(model)
pass models to a template
Any help would be much appreciated. I think it is something trivial but I'm out of ideas for things to try.
Thanks,
UPDATE:
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.admin',
'techtree',
'froink',
)
Structure:
project/techtree/models.py
(contains a test model)project/techtree/models/__init__.py
(as described here)project/techtree/models/typ.py
(contains model Type)
There are more files of the same type as the last line.