更新时间:2023-10-14 07:48:45
问题似乎是在0001_initial.py文件中的模型顺序。有一个派生自AppUser的类。当我在Mac OS上使用
The problem seemed to be with the order of models in the 0001_initial.py file. There was a class which derived from AppUser. When I re-created the migration on Mac OS with
manage.py startmigration app --initial
并将其与Ubuntu上生成的模型的顺序不同。所以当我改变顺序匹配一个在Mac OS上,一切工作正常。
and compared that to one generated on Ubuntu the order of models was different. So when I changed the order to match the one on Mac OS, everything worked fine.
这个问题似乎只存在于0.5版本的南部, 。
This problem seems to exist only in 0.5 version of south and is supposedly fixed on trunk.