Pycharm error Django is not importable in this environment

前端 未结 17 1049
情话喂你
情话喂你 2021-02-01 13:00

I\'m getting the following errors in Pycharm.

Error: Django is not importable in this environment

It used to work well but I moved t

17条回答
  •  隐瞒了意图╮
    2021-02-01 13:11

    you have to edit your project configuration for that. Environemt->Environment variables set varable DJANGO_SETTINGS_MODULE=project_name.settings

提交回复
热议问题