我正试图让 Django 南下在 Hereoku 上工作。多亏了这个例子,这似乎并不难。但是,我正在使用一种解决方法来解决南方的一个错误,当在 Django 中使用自定义用户模型时,该错误会阻止启动南方。
我在本地使用以下南命令来启动南(解决方法):
python manage.py syncdb
python manage.py convert_to_south myapp
python manage.py migrate myapp 0001 --fake
之后,我将代码推送到 Heroku,并在 Heroku 上尝试了以下步骤:
python manage.py syncdb // this didn't sync the south apps
python manage.py convert_to_south myapp
// This gave the error saying that the apps were already added to south
我的第二次尝试(在 Heroku 数据库重置和新推送之后):
python manage.py syncdb // this didn't sync the south apps
python manage.py migrate
// Same south error as described in the south bug ticket
有谁能把我引向正确的方向吗?