[Answered ]-How to set password to user in database directly?

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()

Leave a comment