Django uwsgi déployé. Impossible de find 'application'

Problème lors du lancement de 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() 

Il me semble que tout devrait être correct, mais ce n'est pas …

Hm, je pense que j'ai trouvé la solution: remplacez-le simplement wsgi-file = dashboard/wsgi.py à ce module = dashboard.wsgi:application