Return to Snippet

Revision: 63781
at June 6, 2013 15:29 by techpop


Updated Code
$ ./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()

Revision: 63780
at June 6, 2013 15:28 by techpop


Initial Code
$ ./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()

Initial URL


Initial Description
lost your django admin password?  here's how to reset it.

Initial Title
reset django admin password

Initial Tags


Initial Language
Django