Deploying Django with gunicorn No module named ImportError: No module named validation Deploying Django with gunicorn No module named ImportError: No module named validation nginx nginx

Deploying Django with gunicorn No module named ImportError: No module named validation


Changing gunicorn_django to gunicorn newApp.wsgi:application should fix this.

Using gunicorn_django is no longer recommended. This is because it calls django_wsgi.py which is deprecated and throws the import error.

More info:http://www.rkblog.rk.edu.pl/w/p/first-impressions-django-17-beta-upgrade-young-project/


It looks like django wsgi file for gunicorn has django dependency. (Last line of stack trace.)https://github.com/benoitc/gunicorn/blob/e0b3c42dd2c31b2f60abd6833401bd8eed116dc6/gunicorn/app/django_wsgi.py#L21

It looks to me like gunicorn cannot find django on its path.