I'm attempting to deploy my first application to EB and am following along with this turorial: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html
Unfortunately, I'm still getting a 502 error when deploying the final app. I'm confused because I've followed the directions to the tee.
I'm getting the following error
ImportError: Failed to find application, did you mean 'ebdjango/wsgi:application'?
I'm not sure what this means. Per the instructions, I edited the django.config file to include this text:
option_settings:
aws:elasticbeanstalk:container:python:
WSGIPath: ebdjango/wsgi.py
This appears to match my file structure:
- ebdjango
-.ebextensions
- django.config
- .elasticbeanstalk
- ebdjango
_ __init__.py
- settings.py
- urls.py
- wsgi.py
- manage.py
- requirements.txt
So the config file is set up correctly, right?
I'm running Python 3.7 and Django 2.2.
I know that EB searches for application.py, and I thought the config file is supposed to point the server towards my custom app? What am I missing here?
EDIT: I'm also getting this error:
ModuleNotFoundError: No module named 'ebdjango/wsgi'
Is something off about my file structure?
EDIT 2: I forgot to include the init.py file in my post, see Ben's comment.