未从Elastic Beanstalk运行迁移命令(Django)

时间:2020-01-10 18:38:19

标签: python django amazon-web-services

我正在使用Amazon的Elastic Beanstalk和Django 2.5.5。我正在尝试克隆Airbnb。

我上传了makemigration的文件(用户,房间,列表等...) 并且我想使用django.config进行迁移,但无法正常工作。 (即使在我的本地(sqlite3)中使用新的数据库,所有迁移都可以正常工作

这是我的容器命令,

container_commands:
  01_migrate:
    command: "django-admin.py migrate"
    leader_only: true
  02_compilemessages:
    command: "django-admin.py compilemessages"
option_settings:
  aws:elasticbeanstalk:container:python:
    WSGIPath: config/wsgi.py
  aws:elasticbeanstalk:application:environment:
    DJANGO_SETTINGS_MODULE: config.settings

我已经确认即使将它与python manage.py结合使用也无法运行

我错过了... OTL

0 个答案:

没有答案
相关问题