Skip to content

Instantly share code, notes, and snippets.

@klw0
Created March 13, 2014 15:12
Show Gist options
  • Select an option

  • Save klw0/9530295 to your computer and use it in GitHub Desktop.

Select an option

Save klw0/9530295 to your computer and use it in GitHub Desktop.
Update user accounts via Django's shell
from django.contrib.auth.models import User
user = User.objects.get(username='TheUser')
user.set_password('ThePassword')
user.save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment