运行django前后端分离的项目出错具体提示:
raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: Requested setting REST_FRAMEWORK, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
出现该情况,您应该是编辑好项目代码后,直接在django点击run了
正确做法,应该是在django的Terminal终端输入:python manage.py runserver运行