Django报错django.core.exceptions.ImproperlyConfigured: Requested setting LOGGING_CONFIG解决办法
错误代码:
django.core.exceptions.ImproperlyConfigured: Requested setting LOGGING_CONFIG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
解决办法:
将配置添加到pycharm中的python配置中
在环境变量(environment variables)这一栏添加如下信息:
此时去运行,完美解决!
————————————————
版权声明:本文为CSDN博主「Circle-C」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_38316655/article/details/104139326
赞 (0)