djanog shell change password

C++
python manage.py changepassword <user_name>
from django.contrib.auth.models import User

usr = User.objects.get(username='your username')
usr.is_superuser=True
usr.is_staff=True
usr.set_password('raw password')
usr.save()python manage.py changepassword <user_name>
Source

Also in C++: