Change root password

Posted: April 18th, 2010 | Author: Davo | Filed under: Django | Tags: | No Comments »

The manage.py provides a changepassword option which allows you to change the password of any given User (django.contrib.auth).

To change the password of the root account:

python manage.py changepassword
Changing password for user 'root'
Password: xxx
Password (again): xxx
Password changed successfully for user 'root'

If you want to change the password for another User:

python manage.py changepassword someuser
Error: user 'someuser' does not exist