Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSahar Nasiri
7,454 PointsForgotten Username & Password
I've forgotten my username and password to login to Django Administration, what should I do?
3 Answers
Jude Molloy
7,470 PointsThis just happened to me it turns out the username is kennethlove and I had to change the password. This shows you how to change a password http://www.laurivan.com/change-a-django-password-manually/
:)
Joseph Groark
24,499 PointsIf you have followed the videos exactly, try Username = kennethlove password = password
Dmitry Bruhanov
8,513 PointsThis one works)) Thanks a lot, Josef!
Brandon McClelland
4,645 PointsAfter some googling it looks like:
manage.py changepassword *username*
is your best bet. First you'll want to see if you can find all superusers and recognize your username:
python manage.py shell
and then this script:
from django.contrib.auth.models import User
User.objects.filter(is_superuser=True)
You could also try creating a new superuser to regain access:
python manage.py createsuperuser
Note: I got all this from googling your question directly and reading this Stack Overflow page: http://stackoverflow.com/questions/6358030/how-to-reset-django-admin-password
Sahar Nasiri
7,454 PointsThanks, I did the third option but I really needed to know how can I change the username and password.