Django - makemigrations - No changes detected

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

    There are sometimes when ./manage.py makemigrations is superior to ./manage.py makemigrations because it can handle certain conflicts between apps.

    Those occasions occur silently and it takes several hours of swearing to understand the real meaning of the dreaded No changes detected message.

    Therefore, it is a far better choice to make use of the following command:

    ./manage.py makemigrations ...

提交回复
热议问题