Created
January 3, 2012 15:06
-
-
Save christianschmizz/1555273 to your computer and use it in GitHub Desktop.
Resetting django's admin password
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
# Via ./manage.py shell | |
from django.contrib.auth.models import User | |
admin = User.objects.get(username='admin') | |
admin.set_password('new password'); | |
users[0].save() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment