change superuser password in django

2.2k Views Asked by At

I tried to change my admin password but I have an error while running user = User.objects.get(username='normaluser') invalid inputshell error

1

There are 1 best solutions below

5
On

You should use

python manage.py changepassword <user_name>

Documentation

manage.py changepassword username offers a method of changing a user’s password from the command line.