Skip to Content

Gareth53.co.uk - the online home of Gareth Senior

Damnit! I forgot my Django Admin Password

6:21p.m., Tue 12 Aug 2008

It's not the first time. And it won't be the last.

To change your Django Admin password fom the command line, you can do so like this:

gareth.senior: python manage.py shell
In [1]: from django.contrib.auth.models import User
In [2]: users = User.objects.all()
In [3]: users
Out[3]: [<User: gareth>] In [4]: users[0].set_password('something')
In [5]: users[0].save()

Latest Posts

Blog Categories