Skip to content

Instantly share code, notes, and snippets.

@sdoro
Created May 7, 2013 14:50
Show Gist options
  • Save sdoro/5533178 to your computer and use it in GitHub Desktop.
Save sdoro/5533178 to your computer and use it in GitHub Desktop.
Howto Reset The Admin Password in Django
from django.contrib.auth.models import User
users = User.objects.all()
u = users[0]
u.set_password('sergio')
u.save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment