set password django

Solutions on MaxInterview for set password django by the best coders in the world

showing results for - "set password django"
Tommaso
25 Jan 2021
1python manage.py shell
2
3from django.contrib.auth.models import User
4
5usr = User.objects.get(username='your username')
6usr.set_password('raw password')
7usr.save()