[英]ModuleNotFoundError: No module named 'application' error in AWS
I am trying to deploy a django's app to aws.我正在尝试将 django 的应用程序部署到 aws。
I am getting the error " ModuleNotFoundError: No module named 'application'" when I try to create the app ( django create django-env ).当我尝试创建应用程序( django create django-env )时,我收到错误“ModuleNotFoundError:No module named 'application'”。 I don't know why.
我不知道为什么。 My django.config file is:
我的 django.config 文件是:
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.我的应用程序的布局是。
My application name is project, so I don't know what is wrong.我的应用程序名称是项目,所以我不知道有什么问题。
Thank you谢谢
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.我根据您提供的少量信息进行了疯狂的猜测,但我会检查 WSGIPath 是否指向您的 django 应用程序
wsgi.py
文件。
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
以下内容可能对Deploying Django + Python 3 + PostgreSQL to AWS Elastic Beanstalk有所帮助
Edit: edited because I can't read.编辑:编辑,因为我看不懂。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.