报错代码:
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

解决方法:

添加环境变量:

关于Django报错django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, but settings are not configure

关于Django报错django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, but settings are not configure

 

 DJANGO_SETTINGS_MODULE=projecname.settings #projectname是你的项目名字

其他的自己百度,还有许多其他方法。

 

相关文章:

  • 2022-02-15
  • 2018-04-05
  • 2021-10-13
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-01
猜你喜欢
  • 2021-12-30
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-06-07
  • 2021-11-03
相关资源
相似解决方案