Djanog shell change password

In this article let’s discuss about Djanog shell change password. Let’s go through the following methods without any delay.

Method 1:

from django.contrib.auth.models import User

usr = User.objects.get(username='your username')
usr.set_password('raw password')

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar but have a try!

Method 2 :

python changepassword 

Hope the above solution works.

Realted Posts : How discharge changes e recover last commit git