python manage.py shell
from django.contrib.auth.models import Useruser = User.objects.get(username='admin')user.set_password('new_password')user.save()
本文共 204 字,大约阅读时间需要 1 分钟。
python manage.py shell
from django.contrib.auth.models import Useruser = User.objects.get(username='admin')user.set_password('new_password')user.save()
转载于:https://www.cnblogs.com/springran/p/4101228.html