gitstack 密码重置

不幸忘记了git stack 的管理密码,万种尝试,都是提示“Your username and password didn't match. Please try again.”

翻墙google后,得一解决方案。

进入终端命令,按照如下顺序操作

cd c:GitStackapp   (gitstack目录因安装而异)
python manage.py shell

from django.contrib.auth.models import User
u = User.objects.get(username__exact='admin')
u.set_password('password')
u.save()
quit()

操作完毕,GitStack登录密码已经被设置为"password",再登录修改成自己想要的。

原文地址:https://www.cnblogs.com/limonyun/p/9007154.html