[英]AWS EB WSGI path refers to a file that doesn't exist
I have a Django app that I'm trying to deploy to AWS Elastic Beanstalk but I'm getting the following error during the deployment: 我有一个Django应用程序,我正在尝试部署到AWS Elastic Beanstalk但是我在部署期间收到以下错误:
2019-04-14 20:50:20 ERROR Your WSGIPath refers to a file that does not exist.
I have updated the wsgi settings following this guide : 我已按照本指南更新了wsgi设置:
aws:elasticbeanstalk:container:python:
NumProcesses: '1'
NumThreads: '15'
StaticFiles: /static/=static/
WSGIPath: Appname/wsgi.py
aws:elasticbeanstalk:container:python:staticfiles:
/static/: static/
The .ebextensions directory along with the elasticbeanstalk, the main django project folder (containing the settings and wsgi files) are all in the same directory: .ebextensions目录以及elasticbeanstalk,主django项目文件夹(包含设置和wsgi文件)都在同一目录中:
.ebextensions
elasticbeanstalk
Appname
- __init__.py
- settings.py
- urls.py
- wsgi.py
What could be causing the wsgi file to not be found? 什么可能导致找不到wsgi文件?
You explained that the Appname
directory contains this file 您解释说Appname
目录包含此文件
- wsgy.py wsgy.py
Yet the config uses i
rather than y
: 然而配置使用i
而不是y
:
WSGIPath: Appname/wsgi.py
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.