django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not

django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.

解决方案:
开发Django项目时使用PyCharm运行项目时总是报错,找了好久,猛然发现:
启动有误啊!!
django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not
应该是这样:
django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not
django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not
然后启动、哈哈哈、一切正常
django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not

大意惹的祸啊!!!