1.錯誤原因: django.core.exceptions.ImproperlyConfigured: AUTH_USER_MODEL refers to model 'users.UsersProfile' that has not been installed
PS: AUTH_USER_MODEL = "users.UsersProfile" # 是爲了 讓django用戶認證使用我們自己定義的用戶模型...所以這裏的配置可能出現了錯誤!
users:你的app名稱
UsersProfile:你的model名稱
兩種原因:
A.可能是你的django app沒有在INSTALLED_APPS裏面
B.可能是你太粗心,AUTH_USER_MODEL 跟你的 model名稱對不上號...
(ps:我就是第二種....)
以後繼續更新...