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

后端 未结 7 1651
误落风尘
误落风尘 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.

    0 讨论(0)
提交回复
热议问题