I have a custom django management command that initializes an apps migrations. Trouble is, south does not detect the new migrations in the command.
for app in custom_apps:
call_command('schemamigration', app, initial=True)
call_command('migrate', app, fake=True)
This creates the initial migration, but does not apply them.
? You have no migrations for the 'profile' app. You might want some.
I tried using convert_to_south
, but it only converts the first app in the list, and then gives this error for the rest of them
This application has no models; this command is for applications that already have models syncdb'd.
Make some models, and then use ./manage.py schemamigration candidates --initial instead.
The commands work if I run them manually.
Can't figure out what's going on.