1👍
You can set the password for a user in Django by using the set_password
method
from django.contrib.auth.models import User
u = User.objects.get(username='john')
u.set_password('new password')
u.save()
Source:stackexchange.com
1👍
You can set the password for a user in Django by using the set_password
method
from django.contrib.auth.models import User
u = User.objects.get(username='john')
u.set_password('new password')
u.save()