Bootstrap

django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but setting...

解决办法很简单:

在项目的最上方加上:

import os,django
os.environ.setdefault("DJANGO_SETTINGS_MODULE","project_name.settings")# project_name 项目名称
django.setup()

 

转载于:https://www.cnblogs.com/liangliangzz/p/11611292.html

;