/ Published in: Django
lost your django admin password? here's how to reset it.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$ ./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()