django3.2 导入models 就报错

<p>只要导入 models 就报错如下:</p>

<p>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 set tings. . 不导入就可以正常运行</p>

使用的是 # 'channels', websocket的配置

评论 0