1👍
When you define:
DJANGO_SETTINGS_MODULE = 'mysite.settings'
Django looks up for settings.py
file in mysite
folder. mysite
folder has to be on your PYTHONPATH. Make sure you set your PYTHONPATH to something like:
export PYTHONPATH=/home/work/project:/home/work/project/project:$PYTHONPATH
Source:stackexchange.com