Database migrations on django production

前端 未结 5 453
自闭症患者
自闭症患者 2021-01-31 10:20

From someone who has a django application in a non-trivial production environment, how do you handle database migrations? I know there is south, but it seems like t

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-31 10:47

    I use South for a production server with a codebase of ~40K lines and we have had no problems so far. We have also been through a couple of major refactors for some of our models and we have had zero problems.

    One thing that we also have is version control on our models which helps us revert any changes we make to models on the software side with South being more for the actual data. We use Django Reversion

提交回复
热议问题