#ModuleNotFoundError: No module named 'myproject'

10 messages · Page 1 of 1 (latest)

rancid zephyr
#

can you show the result of ls /root/webapp/myproject_backend/

#

aka is their a myproject folder inside it that has a settings.py etc.

rancid zephyr
#

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
static marsh
#

The thing you wrote now is just invalid.

cb said you need to check your current workig directory. Did you do that?

static marsh
#

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?

static marsh
#

You should not ignore when we try to help you

static marsh
#

What a way to end