django.core.exceptions.ImproperlyConfigured: Requested setting CACHES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
import xadmin时出了这个问题,很奇怪
先migrate后再runserver就没问题了
时间: 2024-12-27 23:23:21