我有一个Django 1.11项目,我试图通过删除和重新制作所有迁移来压缩所有迁移。
然而,当我去运行manage.py makemigrations
时,我收到如下错误:
ValueError: The field app1.Model1.campaign was declared with a lazy reference to 'app2.Campaign', but app 'app2' isn't installed.
然而,app2肯定是安装的。我甚至在INSTALLED_APPS
打印出我的settings.py
列表以确认它。导致此错误的原因是什么?