在Elastic beantalk中部署Django项目期间500个内部服务器错误

时间:2019-10-04 05:42:47

标签: django amazon-web-services amazon-elastic-beanstalk

我正在尝试在AWS Elastic beantalk中部署django项目。该项目部署良好,但是部署后转到url时出现500个内部服务器错误。我从错误日志中收到以下错误:

错误日志

mod_wsgi (pid=29607): Target WSGI script '/opt/python/current/app/DJ/wsgi.py' cannot be loaded as Python module.

.ebextensions / django.config

option_settings:
  aws:elasticbeanstalk:container:python:
    WSGIPath: DJ/wsgi.py
    StaticFiles: /static/=static/

我该如何解决?

0 个答案:

没有答案