Django 学习,异常解决记录
条评论1、Django throws django.core.exceptions.AppRegistryNotReady: Models aren’t loaded yet
或者报错:
django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
1 | import django |
PROJECT_NAME,是自己django项目名