我正在使用本教程: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html
我在根目录中创建了 .ebextensions
目录,并将此 django.config
文件放入其中:
option_settings:
aws:elasticbeanstalk:container:python:
WSGIPath: mysite/wsgi.py
我也尝试过将路径设置为 mysite/mysite/wsgi.py
,因为我在某处看到它可以工作,但它对我没有帮助。
我看到的每个地方都显示了一个不同的 .config
文件,具有不同的安排,我不知道从这里去哪里。如何在 Elastic Beanstalk 中正确设置 WSGIPath?
最佳答案
[解决方案]
1 eb 配置
2 将那里的 WSGIPath 从 application.py 更改为 mysite/wsgi.py
就是这样
关于python - Django ; AWS Elastic Beanstalk 错误 : Your WSGIPath refers to a file that does not exist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38649915/