python manage.py shell
from django.contrib.auth.models import User
from django.contrib.auth.models import User
user = User.objects.get(username='admin')
user.set_password('Pass@word')
user.save()
转载于:https://www.cnblogs.com/lijintian/p/7656170.html