makemigrations doesn't detect changes in model

前端 未结 6 982
孤独总比滥情好
孤独总比滥情好 2021-02-13 13:57

I\'m using django 1.9.6. I recently deleted my migrations and ran migrate --run-syncdb and makemigrations my_app. Today I added a new field to one of m

6条回答
  •  逝去的感伤
    2021-02-13 14:37

    If you're deleting a model, and expecting the changes to be picked up in migrations, ensure that the model doesn't have a *.pyc still lying around.

提交回复
热议问题