Created
June 13, 2012 21:21
-
-
Save readevalprint/2926568 to your computer and use it in GitHub Desktop.
make me a super users
This file contains hidden or 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
# pip this to manage like $ cat su.py | ./manage.py shell | |
from user.models import User | |
u = User.objects.get(email="[email protected]") | |
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