Django migrations--is it possible to use South in

2019-02-17 18:39发布

问题:

I already started a project, and the models are all synced and everything.

回答1:

Yes. I think it is not too late. I've moved to south in a middle of a project and I am happy with that choice. I think it is a big help for deployment.

The initialization of the south app can be done at any moment.



回答2:

It's even mentioned in docs:

http://south.aeracode.org/wiki/QuickStartGuide#a1.SetupeveryapplicationtobetrackablebySouth



回答3:

It's quite straight forward to start using South.

Just follow the installation instructions (don't forget to run syncdb at the end).

Then you can convert the app to south:

./manage.py convert_to_south myapp

Then you can make modifications to your model and do schemamigrations or even do datamigrations.