标签:on as new python 用户 方法 rom shell user
1.python manage.py shell
2.from django.contrib.auth.models import User
3.user=User.objects.get(username=‘XXX‘)
4.user.set_password(‘new_password‘)
5.user.save()
或者
1.python manage.py changepassword username
标签:on as new python 用户 方法 rom shell user
原文地址:http://www.cnblogs.com/liyiran/p/4123853.html