Archive

Archive for the ‘django’ Category

Reset django admin password

September 12, 2012 1 comment

Reset django admin password:

$ ./manage.py shell
>>> from django.contrib.auth.models import User
>>> users = User.objects.all()
>>> users
>>> u=User.objects.get(username__exact='admin')
>>> u.set_password(‘whatever’);
>>> u.save()
Advertisements
Categories: django