Pycharm django调试:配置不正确

时间:2019-06-07 11:10:03

标签: django

Pycharm 2018.3 Python 3.7.1

尝试调试views.py时,控制台出现错误。

django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
当我使用python manage.py runserver时,

服务器运行良好 但失败并显示错误

ModuleNotFoundError: No module named 'website'

网站是我的项目名称。

0 个答案:

没有答案