No module named wsgi
This is what I have in mine Procfile
:
web: gunicorn --pythonpath meraki meraki.wsgi
and when i do foreman start
i get this error:
gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
the reason, in my opinion, is in the trace:
ImportError: No module named wsgi
I did import wsgi
in a shell and the import was successful, no errors.
Why can't I start foreman
?
Project structure:
meraki
meraki
//other apps
meraki
settings
__init__.py
celery.py
views.py
wsgi.py
manage.py
Procfile
requirements
requirements.txt
You are confused by following an unnecessarily complex structure. You don't need this external Meraki directory, and your Procfile and requirements .txt file should be in the same directory as manage.py. Then you can remove the pythonpath parameter and you should be fine.
As Roseman said, this is an unnecessarily complex structure. If you want this to be done try
web: gunicorn --pythonpath /path/to/meraki meraki.wsgi
This /absolutepath/to/secondmeroki(out of 3)
that contains apps
.