So you have this nice django site, you try to access the admin to change some minor thing and you completely forgot (and didnt save somewhere) the password of the only user in the system – so many dont’s in that sentence, but anyway…
Since you are the developer, you can simply do this (assuming you at least know the user’s username):
python manage.py changepassword [username]
You will be prompted for a new password, and confirmation, and its done. Then you can go login to your nice admin and smile.
Please note that if you are using a virtualenv, you have to activate it first.
Read more about this and learn new things here:
Using the Django authentication system (opens in a new window)