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:我就是第二种....)
以后继续更新...