Skip to content

Instantly share code, notes, and snippets.

@readevalprint
Created June 13, 2012 21:21
Show Gist options
  • Save readevalprint/2926568 to your computer and use it in GitHub Desktop.
Save readevalprint/2926568 to your computer and use it in GitHub Desktop.
make me a super users
# pip this to manage like $ cat su.py | ./manage.py shell
from user.models import User
u = User.objects.get(email="me@example.com")
u.is_staff = True
u.is_superuser = True
u.save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment