python manage.py shell
from django.contrib.auth.models import User user = User.objects.get(username=‘admin‘) user.set_password(‘new_password‘) user.save()
时间: 2024-12-18 11:15:52
python manage.py shell
from django.contrib.auth.models import User user = User.objects.get(username=‘admin‘) user.set_password(‘new_password‘) user.save()