Django - makemigrations - No changes detected

前端 未结 30 1523
伪装坚强ぢ
伪装坚强ぢ 2020-12-02 04:44

I was trying to create migrations within an existing app using the makemigrations command but it outputs \"No changes detected\".

Usually I create new apps using the

30条回答
  •  借酒劲吻你
    2020-12-02 05:29

    In my case i forgot to insert the class arguments

    Wrong:

    class AccountInformation():
    

    Correct

    class AccountInformation(models.Model):
    

提交回复
热议问题