前提・実現したいこと
AWS の Elastic Beanstalk を使用してDjangoサイトを公開しようとしてます。
以下のサイトをそのまま実行していきましたが、最後に eb open をしたところ Internal Server Error が表示されてしましました。
わけわかめ...
eb deploy をしてもエラー表示が出ず...
setting.py もしくは wsgi.py に問題があるかもしれませんが....
どなたかご教授頂けると幸いです。
発生している問題・エラーメッセージ
エラーメッセージ
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
ここで、よく分からないか eb logs で何が起こっているか確かめてみる...
[Mon Jan 21 09:43:34.028590 2019] [:error] [pid 6389] [remote 172.31.42.12:56] Traceback (most recent call last):
[Mon Jan 21 09:43:34.028621 2019] [:error] [pid 6389] [remote 172.31.42.12:56] File "/opt/python/current/app/oursite/wsgi.py", line 12, in <module>
[Mon Jan 21 09:43:34.028625 2019] [:error] [pid 6389] [remote 172.31.42.12:56] from django.core.wsgi import get_wsgi_application
[Mon Jan 21 09:43:34.028640 2019] [:error] [pid 6389] [remote 172.31.42.12:56] ModuleNotFoundError: No module named 'django'
[Mon Jan 21 09:43:46.699791 2019] [:error] [pid 6389] [remote 172.31.0.156:52] mod_wsgi (pid=6389): Target WSGI script '/opt/python/current/app/oursite/wsgi.py' cannot be loaded as Python module.
[Mon Jan 21 09:43:46.699843 2019] [:error] [pid 6389] [remote 172.31.0.156:52] mod_wsgi (pid=6389): Exception occurred processing WSGI script '/opt/python/current/app/oursite/wsgi.py'.
何が起こっているかわかりません。
どうすれば良いのか教えて下さい。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。