I have a project, structured like this:
project/
__init__.py
db/
models/
__init__.py
article.py
project.py
ontology/
__init__.py
coded.py
It's a little bit bigger, but that's the idea. models.__init__.py
contains:
from db.models.article import *
from db.models.project import *
from db.models.ontology.coded import *
When running syncdb, it ignores all models imported in models.__init__.py
. There are no ImportError
's, and when adding a print statement to the __init__.py
, it happily prints the import models (while running syncdb).
Models defined in __init__.py
work though.
Why is that? Can I force syncdb to account for my imported models?
Edit: The application is in INSTALLED_APPS:
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'amcatnavigator.navigator',
'amcatnavigator.db',
)
Thanks!