错误代码:
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)这一栏添加如下信息:
此时去运行,完美解决!