小编joe*_*are的帖子

目标 WSGI 脚本 '/opt/python/current/app/ ... /wsgi.py' 不能作为 Python 模块加载

我正在尝试在 aws beanstalk 上部署 django 应用程序,但我得到了 500。

我得到了 ImportError 并且我已经尝试了所有网络建议的内容,我想,没有尽头。

来自 aws 服务器日志的跟踪:

-------------------------------------
/var/log/httpd/error_log
-------------------------------------
[Sun Mar 26 02:55:17.126990 2017] [:error] [pid 11381] [remote 127.0.0.1:45055] mod_wsgi (pid=11381): Target WSGI script '/opt/python/current/app/src/kirr/wsgi.py' cannot be loaded as Python module.
[Sun Mar 26 02:55:17.127048 2017] [:error] [pid 11381] [remote 127.0.0.1:45055] mod_wsgi (pid=11381): Exception occurred processing WSGI script '/opt/python/current/app/src/kirr/wsgi.py'.
[Sun Mar 26 02:55:17.127087 2017] [:error] [pid 11381] [remote 127.0.0.1:45055] Traceback (most recent call last):
[Sun Mar 26 02:55:17.127244 2017] [:error] [pid 11381] [remote …
Run Code Online (Sandbox Code Playgroud)

python apache django mod-wsgi amazon-web-services

6
推荐指数
1
解决办法
4669
查看次数

标签 统计

amazon-web-services ×1

apache ×1

django ×1

mod-wsgi ×1

python ×1