Django 1.7 - makemigrations not detecting changes

前端 未结 29 1508
忘了有多久
忘了有多久 2020-11-27 12:43

As the title says, I can\'t seem to get migrations working.

The app was originally under 1.6, so I understand that migrations won\'t be there initially, and indeed i

29条回答
  •  半阙折子戏
    2020-11-27 13:13

    In my case I needed to add my model to the _init_.py file of the models folder where my model was defined:

    from myapp.models.mymodel import MyModel
    

提交回复
热议问题