Pycharm error: Improperly configured

后端 未结 1 562
北恋
北恋 2021-02-14 02:22

After having an unexpected shutdown on my DEV machine, when going back to Pycharm project, I noticed the Django view file I was editing (which had 700+ lines) when that happened

1条回答
  •  [愿得一人]
    2021-02-14 02:58

    For Pycharm, just go to Run -> Edit Configurations, select your project on the right of the window from Debug Configuration, and you will see Environment variables on the right. Make sure you have set DJANGO_SETTINGS_MODULE=mysite.settings, if not just add one, it is as easy as fill a key value pair from the pop up dialog.

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