Admin page on django is broken

前端 未结 5 1059
你的背包
你的背包 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条回答
  •  没有蜡笔的小新
    2020-12-31 01:15

    You can do the following:

    • Enter your mysql (or other database console)
    • USE YourDATABASE;
    • SELECT * from auth_user;
    • watch is_staff and is_superuser item
    • UPDATE auth_user SET is_staff = "1" where username = "root";

    Then you can login again!

提交回复
热议问题