【发布时间】:2019-10-23 03:12:47
【问题描述】:
我在 Elastic Beanstalk 上运行 django,在推送新版本的应用程序后,我收到 500 内部服务器错误。
日志显示:
apps.populate(settings.INSTALLED_APPS)
File "/opt/python/run/venv/local/lib/python3.6/site-packages/django/apps/registry.py", line 83, in populate
raise RuntimeError("populate() isn't reentrant")
RuntimeError: populate() isn't reentrant
mod_wsgi (pid=21994): Target WSGI script '/opt/python/current/app/wsgi.py' cannot be loaded as Python module.
mod_wsgi (pid=21994): Exception occurred processing WSGI script '/opt/python/current/app/wsgi.py'.
Traceback (most recent call last):
File "/opt/python/current/app/wsgi.py", line 16, in <module>
application = get_wsgi_application()
File "/opt/python/run/venv/local/lib/python3.6/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
django.setup(set_prefix=False)
File "/opt/python/run/venv/local/lib/python3.6/site-packages/django/__init__.py", line 24, in setup
对调试有什么建议吗?到目前为止,我试图理解它/谷歌它没有成功。
【问题讨论】:
标签: python django amazon-elastic-beanstalk