報錯代碼:django
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.url
看了半天,我還覺得真的什麼環境變量沒有配置好。檢查了n久的代碼,沒有發現錯誤,只好百度了。而後這結果就有點啼笑皆非了。blog
算了,直接上圖吧。直接點it
個人個天,啓動的位置不對,開始啓動的是urls能不報錯嘛。下次必定要注意。io