Django migrations--is it possible to use South in the middle of the project?

ぃ、小莉子 提交于 2019-12-19 08:07:57

问题


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.



来源:https://stackoverflow.com/questions/2445761/django-migrations-is-it-possible-to-use-south-in-the-middle-of-the-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!