忘记登录密码:
Please enter the correct username and password for a staff account. Note that both fields may be case-sensitive.
解决方法一:
清空数据表中的数据:
python manage.py flush
此命令会询问是 yes 还是 no, 选择 yes 会把数据全部清空掉,只留下空表。
重新创建用户:
python manage.py createsuperuser
解决方法二:
直接修改密码:
python manage.py changepassword username
参考资料:
https://blog.csdn.net/luanpeng825485697/article/details/79254716
https://www.cnblogs.com/wangyuanming/p/7994485.html
https://blog.csdn.net/gulu_gulu_jp/article/details/46971939
网友评论