[Django]-Django Gunicorn: Unable to find application

15๐Ÿ‘

โœ…

If your application is not installed in the Python environment along with Gunicorn, you have to add it on the Python path, so that Gunicorn can see it, either by running from where the package is located or by specifying that location via the --pythonpath STRING command line option.

So either start the server from ~/test_project:

~/test_project$ gunicorn test_project.wsgi:application --bind 162.243.195.141:8001

or with --pythonpath option from your home directory:

~$ gunicorn test_project.wsgi:application --pythonpath test_project --bind 162.243.195.141:8001
๐Ÿ‘คfamousgarkin

Leave a comment