django shell change password for user code example
Example 1: django change password command line
python manage.py changepassword <user_name>
Example 2: django change user password
python manage.py shell
from django.contrib.auth.models import User
usr = User.objects.get(username='your username')
usr.set_password('raw password')
usr.save()