Django - South - Is There a way to view the SQL it runs?

后端 未结 5 2109
遥遥无期
遥遥无期 2021-02-02 09:19

Here\'s what I want to do.

Develop a Django project on a development server with a development database. Run the south migrations as necessary when I change the model.<

5条回答
  •  Happy的楠姐
    2021-02-02 09:47

    You can at least inspect the sql generated by doing manage.py migrate --db-dry-run --verbosity=2. This will not do anything to the database and will show all the sql. I would still make a backup though, better safe than sorry.

提交回复
热议问题