Hi Omar

Actually I do not know why apache is better than the development webserver 
from django or gunicorn, but I wanted to give it a try. The installation 
worked.

Now I am not sure what I am doing wrong:

gunicorn project/wsgi.py:application
[2020-03-04 13:46:26 +0000] [28939] [INFO] Starting gunicorn 19.9.0
[2020-03-04 13:46:26 +0000] [28939] [INFO] Listening at: http://127.0.0.1:8000 
(28939)
[2020-03-04 13:46:26 +0000] [28939] [INFO] Using worker: sync
[2020-03-04 13:46:26 +0000] [28950] [INFO] Booting worker with pid: 28950
[2020-03-04 13:46:26 +0000] [28950] [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 354, in 
import_app
ImportError: Failed to find application, did you mean 
'project/wsgi:application'?
[2020-03-04 13:46:26 +0000] [28950] [INFO] Worker exiting (pid: 28950)
[2020-03-04 13:46:26 +0000] [28939] [INFO] Shutting down: Master
[2020-03-04 13:46:26 +0000] [28939] [INFO] Reason: Worker failed to boot.

I just found this file in my project folder in a folder below the manage.py 
command. So therefore I thought that this could be the right wsgi file. I 
did not write anything into it.

-- 
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/2f03ec91-59e7-4060-bf53-78c4fb5d1d2b%40googlegroups.com.

Reply via email to