#ModuleNotFoundError: No module named 'myproject'
10 messages · Page 1 of 1 (latest)
looks okay to me. since these settings/paths are relative it's important to run commands against them from the right place/folder, maybe you are running that script from someplace wrong?
DJANGO_SETTINGS_MODULE is not expecting a normal path sorry, it needs a python specific syntax:
The value of DJANGO_SETTINGS_MODULE should be in Python path syntax, e.g. mysite.settings. Note that the settings module should be on the Python sys.path.
can you ignore your script for a moment and just (from your project root) run:
gunicorn myproject.wsgi:application
The thing you wrote now is just invalid.
cb said you need to check your current workig directory. Did you do that?
The python path. The paths python searches for modules.
You still have ignored what we said about current working directory. Do you know what that is?
You should not ignore when we try to help you
What a way to end