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

 ̄綄美尐妖づ 提交于 2019-12-05 18:35:44

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!