I use South for schema and data migraton for my Django site. I'm happy about using it. One day I converted models.py
file to models/__init__py
and put some additional models at models/something.py
. When I ran python manage.py schemamigration app --auto
, I got the Nothing seems to have changed.
message despite of the new classes at something.py
. If I copied them to the __init__py
file, South had recognized the new models. I tried to import everything from something
in the top of __init__py
, but no change.
It's Django design. Django is not picking your models at all, you need to set app_label
in your model's Meta class.
See ticket on Automatically discover models within a package without using the app_label
Meta attribute.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With