Altering database tables in Django

前端 未结 7 1369
野性不改
野性不改 2020-12-07 11:33

I\'m considering using Django for a project I\'m starting (fyi, a browser-based game) and one of the features I\'m liking the most is using syncdb to automatica

相关标签:
7条回答
  • 2020-12-07 12:00

    django-command-extensions is a django library that gives some extra commands to manage.py. One of them is sqldiff, which should give you the sql needed to update to your new model. It is, however, listed as 'very experimental'.

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