Created
January 29, 2013 19:15
-
-
Save coldclimate/4666801 to your computer and use it in GitHub Desktop.
How to reset user password in Graphite
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
cd /opt/graphite/webapp/graphite | |
python ./manage.py shell | |
P | |
(InteractiveConsole) | |
>>> from django.contrib.auth.models import User | |
>>> users = User.objects.all() | |
>>> users | |
[<User: graphite>, <User: default>] | |
>>> users[0].set_password('password-here') | |
>>> users[0].save() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wasn't working, but I followed the guide here and it worked. Key was not accessing the user from the array (queryset) but accessing the instance directly: