python manage.py shellpython
而后获取你的用户名,而且重设密码:from django.contrib.auth.models import User user = User.objects.get(username='admin')user.set_password('new_password')user.save()shell