I just updated my server from Django 0.96 to the brand new Django 1.0 release (Congrats Guys!!)

Anyway, I seem to have forgotten the admin password for one of my sites… Its simple enough to reset though with:


./manage.py shell
from django.contrib.auth.models import User
users = User.objects.all()
users
users[0].set_password(‘newpasshere’);
users[0].save()
Add post to: Delicious Reddit Slashdot Digg Technorati Google