In this article let’s discuss about Djanog shell change password. Let’s go through the following methods without any delay.
from django.contrib.auth.models import User usr = User.objects.get(username='your username') usr.is_superuser=True usr.is_staff=True usr.set_password('raw password') usr.save()
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 manage.py changepassword
Hope the above solution works.
Realted Posts : How discharge changes e recover last commit git