项目目录下执行 python3 manage.py shell
>>> from django.contrib.auth.models import User
>>> user = User.objects.get(username='admin')
>>> user.set_password('123456')
>>> user.save()