我在我的模型中添加了以下行
room = models.ForeignKey(Room)
之后我尝试使用南迁:
./manage.py migrate myapp
但我收到了以下错误:
Running migrations for myapp:
- Nothing to migrate.
- Loading initial data for myapp.
Installed 0 object(s) from 0 fixture(s)
你能告诉我我能在这做什么吗?
答案 0 :(得分:1)
阅读教程的相关部分:http://south.readthedocs.org/en/latest/tutorial/part1.html#changing-the-model
(提示:教程说有3个步骤。你只做了2个步骤。)