1👍
✅
DJANGO_SETTINGS_MODULE should be a module, as the name implies, not a path.
os.environ['DJANGO_SETTINGS_MODULE'] = 'myapp_directory.settings'
Source:stackexchange.com