[Django]-Django, Gunicorn, and Settings Dir

5👍

It seems that your setting in wsgi.py is not working. You may try my way of specifying the settings module:

Under your project dir (dir that contains manage.py), run gunicorn with the command:

gunicorn --env DJANGO_SETTINGS_MODULE=settings.production [project_name].wsgi

Replace [project_name] with your own.

It worked for me.

👤Vamei

Leave a comment