Published on July 7, 2013
Forgot the Django site admin password again. Here's how to reset it for next time.
>>> from django.contrib.auth.models import User
>>> u = User.objects.get(username__exact='forgotten')
>>> u
<User: 'forgotten'>
>>> u.set_password('123');
>>> u.save()
0 comments
Additional comments have been disabled for this entry
An entry posted on
July 7, 2013.
Category:
Blog
There are no tags for this entry.