Open In App

How to change password of superuser in Django?

Improve
Improve
Like Article
Like
Save
Share
Report

Django provides us Admin Panel for it’s users to look over the database and other activities. If you dont know how to create superuser then you can refer to How to create superuser in Django?

How to change password of superuser in Django?

For changing password of superuser, first reach the same directory as that of manage.py and run the following command:

python manage.py changepassword user_name

Changing password for user ‘user_name’

Enter the Password in-front of the Password field and press enter. Enter a strong password so as to keep it secure.

Password: ******

Then again enter the same Password for confirmation.

Password (again): ******

This password is too short. It must contain at least 8 characters.

Enter the Password again in-front of the Password field and press enter. Enter a strong password and at least of 8 characters so as to keep it secure.

Password: ********
Password (again): ********

Password changed successfully for user ‘user_name’.


Last Updated : 04 Jan, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads