A
A
Alexander Leyba2019-06-17 16:22:34
Django
Alexander Leyba, 2019-06-17 16:22:34

How to solve gunicorn launch problem?

Good afternoon, when starting gunicorn, it gives an error:
[2019-06-17 13:11:15 +0000] [1120] [INFO] Starting gunicorn 19.9.0
[2019-06-17 13:11:15 +0000] [1120 ] [INFO] Listening at: 127.0.0.1:8000 (1120)
[2019-06-17 13:11:15 +0000] [1120] [INFO] Using worker: sync
[2019-06-17 13:11:15 +0000] [1123] [INFO] Booting worker with pid: 1123
[2019-06-17 13:11:15 +0000] [1123] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/ usr/local/lib/python3.5/dist-packages/gunicorn/arbiter.py", line 583, in spawn_worker
worker.init_process()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/ workers/base.py", line 129, in init_process
self.load_wsgi()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/base.py", line 138, in load_wsgi
self.wsgi = self.app.wsgi()
File "/usr/local/lib /python3.5/dist-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/local/lib/python3.5/dist-packages/gunicorn /app/wsgiapp.py", line 52, in load
return self.load_wsgiapp()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/local/lib/python3.5/dist-packages/gunicorn/util.py", line 350, in import_app
__import__(module)
File "/home/shady/kapremont /kapremont/wsgi.py", line 16,in
application = get_wsgi_application()
File "/usr/local/lib/python3.5/dist-packages/django/core/wsgi.py", line 12, in get_wsgi_application
django.setup(set_prefix=False)
File "/usr/local /lib/python3.5/dist-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python3.5/dist-packages/django/ apps/registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "/usr/local/lib/python3.5/dist-packages/django/apps/config.py", line 90, in create
module = import_module(entry)
File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:],package level)
ImportError: No module named 'django_extensions'
The bottom line is that I have django_extensions installed
Package Version
------------------------ -------
Django 2.2.1
django-ckeditor 5.7.1
django-extensions 2.1.9
Networking also has
INSTALLED_APPS = [
'jet.dashboard',
'jet',
'django.contrib.admin',
'django.contrib.auth',
'django .contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_extensions',
Several times I already deleted and reinstalled it, updated it, even deleted the entire project with the virtual machine and re-uploaded it, still this error. Moreover, everything is fine on the local server, the error is in production.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question