报错:django.core.exceptions.ImproperlyConfigured: AUTH_USER_MODEL refers to model 'auth.User' that has not been installed
解决方案:
This problems generally resides between 2 reasons
这个问题通常存在两个原因
1.When the dependencies order in installed apps are reversed.
1.已安装应用程序中的依赖项顺序颠倒时。
2.When you haven't mentioned the dependency in the installed apps at all.
2.当您完全没有提到已安装应用程序中的依赖关系时。
Here in this case grappelli seems to raise the issue telling auth.User
not found. It means it is not able to find any package auth
. If you are using the default user model remove that AUTH_USER_MODEL
setting from the config or if you are using any custom user model in package 'auth' list it in installed apps.
在本例中,grappelli似乎提出了一个问题,告诉auth.user找不到。这意味着它找不到任何包认证。如果您使用的是默认用户模型,请从配置中删除该身份验证用户模型设置,或者如果您使用包“身份验证”中的任何自定义用户模型,请将其列在已安装的应用程序中。