djiango配置环境问题

报错: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找不到。这意味着它找不到任何包认证。如果您使用的是默认用户模型,请从配置中删除该身份验证用户模型设置,或者如果您使用包“身份验证”中的任何自定义用户模型,请将其列在已安装的应用程序中。

 

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值