Seems like DJANGO_SETTINGS_MODULE was not required by the previous script, so instead of silently defaulting it here, I suggest complaining if it's unset instead.