Skip to content

Instantly share code, notes, and snippets.

@christianschmizz
Created January 3, 2012 15:06
Show Gist options
  • Save christianschmizz/1555273 to your computer and use it in GitHub Desktop.
Save christianschmizz/1555273 to your computer and use it in GitHub Desktop.
Resetting django's admin password
# 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