启动uwsgi时有问题:
unable to find "application" callable in file dashboard/wsgi.py unable to load app 0 (mountpoint='') (callable not found or import error)
uwsgi.ini:
[uwsgi] socket = /tmp/dashboard.sock chdir = /srv/http/depo-dashboard/ wsgi-file = dashboard/wsgi.py callable = app processes = 4 threads = 2 chmod-socket = 666
wsgi.py:
import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dashboard.settings") application = get_wsgi_application()
在我看来,everthing应该是好的,但它不是..
嗯,我想我已经find了解决办法:只需将此wsgi-file = dashboard/wsgi.py
为该module = dashboard.wsgi:application