I am having some trouble setting the DJANGO_SETTINGS_MODULE for my Django project.
I have a directory at ~/dev/django-project. In this directory I have
~/dev/django-project
I had similar error while working on windows machine. My problem was using wrong debug configuration. Use Python:django as your debug config option. First ensure you've exported/set django_settings_module correctly here.