Is django installed properly?
Are you still able to use runserver?
What happens when you run the following?

python -c "import django.core.wsgi" && echo "Yup, works!"

also, looking further into your error log, make sure you're in the proper
directory.
(i may have given you the wrong one earlier, run the below and see if it
works)

cd /var/services/homes/admin/DjangoProject/project/
gunicorn -w 4 project.wsgi:application

On Thu, Mar 5, 2020 at 2:34 PM 'MH' via Django users <
django-users@googlegroups.com> wrote:

> Somehow I cannot write everything into one post that I wanted to reply.
> Here comes the rest of my original post.
>
>
> gunicorn -w 4 wsgi:application
> [... continued ...]
> Traceback (most recent call last):
>   File "/opt/lib/python2.7/site-packages/gunicorn/arbiter.py", line 583,
> in spawn_worker
>   File "/opt/lib/python2.7/site-packages/gunicorn/workers/base.py", line
> 129, in init_process
>   File "/opt/lib/python2.7/site-packages/gunicorn/workers/base.py", line
> 138, in load_wsgi
>   File "/opt/lib/python2.7/site-packages/gunicorn/app/base.py", line 67,
> in wsgi
>  Traceback (most recent call last):
>   File "/opt/lib/python2.7/site-packages/gunicorn/arbiter.py", line 583,
> in spawn_worker
>   File "/opt/lib/python2.7/site-packages/gunicorn/workers/base.py", line
> 129, in init_process
>   File "/opt/lib/python2.7/site-packages/gunicorn/workers/base.py", line
> 138, in load_wsgi
>   File "/opt/lib/python2.7/site-packages/gunicorn/app/base.py", line 67,
> in wsgi
>   File "/opt/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 52
> , in load
>   File "/opt/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 41
> , in load_wsgiapp
>   File "/opt/lib/python2.7/site-packages/gunicorn/util.py", line 350, in
> import_app
>   File
> "/var/services/homes/admin/DjangoProject/abrechnung/abrechnung/wsgi.py",
> line 12, in <module>
>     from django.core.wsgi import get_wsgi_application
> ImportError: No module named django.core.wsgi
> [2020-03-05 12:55:09 +0000] [29309] [INFO] Worker exiting (pid: 29309)
> [2020-03-05 12:55:09 +0000] [29310] [ERROR] Exception in worker process
> Traceback (most recent call last):
>   File "/opt/lib/python2.7/site-packages/gunicorn/arbiter.py", line 583,
> in spawn_worker
>   File "/opt/lib/python2.7/site-packages/gunicorn/workers/base.py", line
> 129, in init_process
>   File "/opt/lib/python2.7/site-packages/gunicorn/workers/base.py", line
> 138, in load_wsgi
>   File "/opt/lib/python2.7/site-packages/gunicorn/app/base.py", line 67,
> in wsgi
>   File "/opt/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 52
> , in load
>   File "/opt/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 41
> , in load_wsgiapp
>   File "/opt/lib/python2.7/site-packages/gunicorn/util.py", line 350, in
> import_app
>   File
> "/var/services/homes/admin/DjangoProject/abrechnung/abrechnung/wsgi.py",
> line 12, in <module>
>     from django.core.wsgi import get_wsgi_application
> ImportError: No module named django.core.wsgi
> [2020-03-05 12:55:09 +0000] [29310] [INFO] Worker exiting (pid: 29310)
> [2020-03-05 12:55:10 +0000] [29297] [INFO] Shutting down: Master
> [2020-03-05 12:55:10 +0000] [29297] [INFO] Reason: Worker failed to boot.
>
> The wsgi filee only consists of:
>
> import os
>
> from django.core.wsgi import get_wsgi_application
>
> os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings")
>
> application = get_wsgi_application()
>
>
> What should I do differently?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d6ab1255-5fc0-4800-b618-555b34848422%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/d6ab1255-5fc0-4800-b618-555b34848422%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFwtXp29ynfVBdOx%2BptFHrZercMLTPy4Y7o85Oae_3sCEA4VOw%40mail.gmail.com.

Reply via email to