Django heroku进行迁移时忽略了模型中的更改

2024-10-02 00:27:34 发布

您现在位置:Python中文网/ 问答频道 /正文

我从中删除了两个模型模型.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: py模型消息helloforherokumodelhere

热门问题