I have a project with several apps and many data models. I'm using Django 1.7 and Python 2.7.
I've organized the models into app-level modules.
- common/
-- models/
--- __init__.py
--- these_models.py
--- those_models.py
I've added a new file in this structure and Django's makemigration
command is not detecting changes.
If I put the new models in an existing model file the migration files are created perfectly, everything migrates and runs great. Once I put them into a new file Django doesn't find them. They aren't in a new app - it's an existing app/models/
module, just a new file. I don't import *
(ewwww) in the __init__.py
or anything.
In Django 1.4 I had to use the Meta
's app_label
but don't do this anymore.
Any thoughts? Will I need to make the migration files manually (I have no problem doing this)?