Answers for "how to set_password in django custom user model"

0

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()
Posted by: Guest on December-23-2020

Code answers related to "how to set_password in django custom user model"

Python Answers by Framework

Browse Popular Code Answers by Language