当我输入命令
时,我有一个Elastic Beanstalk实例02_migrate:
command: "django-admin.py migrate"
leader_only: true
它失败并显示以下消息:
[Instance: i-xxxxxx] Command failed on instance. Return code: 1 Output: There is no South database module 'south.db.postgresql_psycopg2' for your database. Please either choose a supported database, check for SOUTH_DATABASE_ADAPTER[S] settings, or remove South from INSTALLED_APPS. container_command 02_migrate in .ebextensions/myproject.config failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
在localhost我没有遇到任何迁移问题。我正在使用django 1.8所以没有南方需要。即使在requirements.txt中,南方也不存在,也不在settings.py中。我读了类似的线程,卸载南方解决了问题,但没有安装南。
运行Python 2.7的64位Amazon Linux 2015.03 v2.0.1。
我尝试使用干净的初始化和--fake-initial迁移但没有成功。