views:

21

answers:

1

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.

+2  A: 

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.

iElectric
Thank you, that was the problem.
Török Gábor