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