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 answers

5
crimsonpython24 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.