cd到manage.py目录下
python manage.py shell
>>from django.contrib.auth.models import User
>>user=User.objects.get(username='admin')
>>user.set_password('*********')
>>user.save()
忘记用户名?
>>user1 = User.objects.filter(is_superuser = True)
>>user2 = User.objects.filter(is_superuser = True, is_staff = True)
>>print(user1,user2)