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

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

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

3条回答
  •  梦毁少年i
    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.

提交回复
热议问题