Database migrations on django production

前端 未结 5 455
自闭症患者
自闭症患者 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条回答
  •  Happy的楠姐
    2021-01-31 10:57

    South isnt used everywhere. Like in my orgainzation we have 3 levels of code testing. One is local dev environment, one is staging dev enviroment, and third is that of a production .

    Local Dev is on the developers hands where he can play according to his needs. Then comes staging dev which is kept identical to production, ofcourse, until a db change has to be done on the live site, where we do the db changes on staging first, and check if everything is working fine and then we manually change the production db making it identical to staging again.

提交回复
热议问题