How can I correctly set DJANGO_SETTINGS_MODULE for my Django project (I am using virtualenv)?

后端 未结 7 1661
误落风尘
误落风尘 2020-12-07 21:22

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

7条回答
  •  爱一瞬间的悲伤
    2020-12-07 21:48

    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.

提交回复
热议问题