veni vidi Scripsi

Oh no! I've Forgotten my Django Admin Password!

And here's how to reset it if you can still reach the in­stal­la­tion via SSH or similar.

Start a Django shell:

python manage.py shell

Use the following code to change the password:

from django.contrib.auth.models import User
u = User.objects.get(username__exact='[username]')
u.set_password('[fill in new password here]')
u.save()
exit()

That's all!

Sources

Quick Templating System for HTML Page Mock-ups (Mac OS X specific) » « Installing Gettext on Mac OS X Lion