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:
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 :
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
Appname
- __init__.py
- settings.py
- urls.py
- wsgi.py
What could be causing the wsgi file to not be found?
You explained that the Appname
directory contains this file
- wsgy.py
Yet the config uses i
rather than y
:
WSGIPath: Appname/wsgi.py
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.