【发布时间】:2021-03-03 10:27:50
【问题描述】:
为什么我在运行测试时会出现以下问题?已经尝试了一切,似乎没有任何效果
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.
一切正常,但正在测试中。
【问题讨论】: