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 trial

Python Django Basics Django Templates Step by Step

Sahar Nasiri
Sahar Nasiri
7,454 Points

Forgotten Username & Password

I've forgotten my username and password to login to Django Administration, what should I do?

3 Answers

This 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
Joseph Groark
24,499 Points

If you have followed the videos exactly, try Username = kennethlove password = password

Dmitry Bruhanov
Dmitry Bruhanov
8,513 Points

This one works)) Thanks a lot, Josef!

Brandon McClelland
Brandon McClelland
4,645 Points

After 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
Sahar Nasiri
7,454 Points

Thanks, I did the third option but I really needed to know how can I change the username and password.