第一种:
运行:python manage.py shell
>>> from django.contrib.auth.models import User
>>> u = User.objects.get(username__exact='john')>>> u.set_password('new password')
>>> u.save()
密码就被设置成了new password
第二种:
manage.py createsuperuser --username=joe --email=joe@example.com