解决方法:
项目目录下执行 python3 manage.py shell
>>> from django.contrib.auth.models import User >>> user = User.objects.get(username='test') # 修改密码为 666666 >>> user.set_password('666666') >>> user.save()