[Fixed]-Where is "hellodjango.wsgi"?


The gunicorn command takes the name of a Python module, not a path to a file. If hellodjango.wsgi is the name of the Python module, the corresponding file will be hellodjango/wsgi.py or hellodjango/wsgi/__init__.py.

This is the same syntax used to refer to a module when importing it, e.g. you would import * from hellodjango.wsgi to get access to the things defined in hellodjango/wsgi.py.

The django-admin startproject command will create a wsgi.py file in the same directory as the project’s settings.py and urls.py files.

Leave a comment