我从中删除了两个模型模型.py,当我运行makemigrations并在本地迁移时,一切正常。当我在Heroku上运行makemigrations时,我得到以下消息,其中Building和BuildingInstance是我删除的模型:
Migrations for 'hello':
0002_building_buildinginstance.py:
- Create model Building
- Create model BuildingInstance
运行migrate时,我得到:
^{pr2}$
我遵循了步骤here,并尝试在本地和Heroku上按建议的here压缩迁移。我怎样才能解决这个问题?在
Tags:
正如我在这里写过很多次的,您不能在Heroku上运行makemigrations。在本地运行它,提交结果,然后在Heroku上运行migrate。在
相关问题 更多 >
编程相关推荐