ModuleNotFoundError: No module named 'application' error in AWS

Viewed 1281

I am trying to deploy a django's app to aws.

I am getting the error " ModuleNotFoundError: No module named 'application'" when I try to create the app (django create django-env). I don't know why. My django.config file is:

option_settings:
"aws:elasticbeanstalk:projectlication:environment":
DJANGO_SETTINGS_MODULE: project.settings
"aws:elasticbeanstalk:container:python":
WSGIPath: project.wsgi:application

The layout of my application is.

enter image description here

My application name is project, so I don't know what is wrong.

Thank you

1 Answers

I'm taking a wild guess based on the little information you've given but I would check that the WSGIPath points to your django applications wsgi.py file.

Again, I'm just guessing because you haven't provided much context. The following might be of some help Deploying Django + Python 3 + PostgreSQL to AWS Elastic Beanstalk

Edit: edited because I can't read.

Related