Django - makemigrations - No changes detected

前端 未结 30 1525
伪装坚强ぢ
伪装坚强ぢ 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:48

    1. Make sure your app is mentioned in installed_apps in settings.py
    2. Make sure you model class extends models.Model

提交回复
热议问题