This blog is for technical and personal posts. Over different jobs over the years I've written hundreds of articles, and now it's time to share with everyone!
Thursday, July 25, 2013
oneliner: reset Django administrator password
$ ./manage.py shell
>>> from django.contrib.auth.models import User >>> a=User.objects.all()[0]; a.set_password('beerbeer'); a.save()
No comments:
Post a Comment