Admin page on django is broken

前端 未结 5 1037
你的背包
你的背包 2020-12-31 00:48

I\'ve set up a django project with an admin page. It worked perfectly for the first couple weeks of development, didn\'t use the admin page for a while, and when I came bac

5条回答
  •  -上瘾入骨i
    2020-12-31 01:23

    Are you using a custom user model and forgot add it in settings.py? That is what just happened to me.

    # Substituting a custom User model
    
    AUTH_USER_MODEL = "app_custom_auth.User"
    

提交回复
热议问题