Created
May 7, 2013 14:50
-
-
Save sdoro/5533178 to your computer and use it in GitHub Desktop.
Howto Reset The Admin Password in Django
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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