在 makemigrations 中没有显示要应用的迁移

时间:2021-02-01 07:12:13

标签: python django model django-migrations

即使在执行 migrate 命令时有要应用的迁移,它也显示没有要应用的迁移 Even When there are migrations to apply when making the command migrate it shows no migrations to apply

2 个答案:

答案 0 :(得分:0)

您需要迁移您的项目,以将 django 中的所有模块导入您的项目。

python3 manage.py migrate

答案 1 :(得分:0)

我通过删除迁移缓存并运行 makemigrations 并再次迁移来解决它。 还是谢谢