[2020-02-14 16:15:21 +0000] [17066] [INFO] Listening at: http://0.0.0.0:5000 (17066)
[2020-02-14 16:15:21 +0000] [17066] [INFO] Using worker: sync
[2020-02-14 16:15:21 +0000] [17070] [INFO] Booting worker with pid: 17070
[2020-02-14 16:15:21 +0000] [17070] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 578, in spawn_worker
worker.init_process()
File "/usr/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 126, in init_process
self.load_wsgi()
File "/usr/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 135, in load_wsgi
self.wsgi = self.app.wsgi()
File "/usr/lib/python2.7/dist-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 65, in load
return self.load_wsgiapp()
File "/usr/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/lib/python2.7/dist-packages/gunicorn/util.py", line 377, in import_app
__import__(module)
File "/home/ubuntu/client_portal/client_portal/wsgi.py", line 12, in <module>
from django.core.wsgi import get_wsgi_application
ImportError: No module named django.core.wsgi
[2020-02-14 16:15:21 +0000] [17070] [INFO] Worker exiting (pid: 17070)
[2020-02-14 16:15:21 +0000] [17066] [INFO] Shutting down: Master
[2020-02-14 16:15:21 +0000] [17066] [INFO] Reason: Worker failed to boot.
Я перепробовал все
pip3 install gunicorn
Я могу запустить его на виртуальной машине, но не на сервере Ubuntu 18.04. Код wsgi также точен, и я запускаю тот же код на другом сервере Ubuntu 16.04, он также работает там, но здесь не работает.