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

后端 未结 3 1630
南方客
南方客 2021-01-13 09:00

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

相关标签:
3条回答
  • 2021-01-13 09:05

    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.

    0 讨论(0)
  • 2021-01-13 09:21

    It's even mentioned in docs:

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

    0 讨论(0)
  • 2021-01-13 09:22

    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.

    0 讨论(0)
提交回复
热议问题