Hello @kartik,
See the Changing passwords section
-
Navigation to your project where manage.py file lies
-
$ python manage.py shell
-
type below scripts :
from django.contrib.auth.models import User
u = User.objects.get(username__exact='john')
u.set_password('new password')
u.save()
You can also use the simple manage.py command:
manage.py changepassword *username*
Just enter the new password twice.
Hope it helps!!
Thank you!