Loving Open-Souce One Anonymous Function at a Time.

How to reset Django admin password

Sometimes you just can't remember what you set it to, or like me, you restore from an SQL file that you never knew the password for. Anyway, python to the rescue.

> python shell

from django.contrib.auth.models import User

u = User.objects.all()

thanks to and the first comment