If you know your username (for example admin) then use this:
1 | manage.py changepassword admin |
Also, You may try through the console to see and change the password:
Use the shell console and start the Django shell:
1 | python manage.py shell |
Now use this Django script:
1 2 3 4 5 | from django.contrib.auth.models import User User.objects.filter(is_superuser=True) u = User.objects.get(username='your username') u.set_password('raw password') u.save() |
If you need to create another superuser.
1 2 3 4 5 6 | 13:56 ~/mysite $ python manage.py createsuperuser Username: testsuper E-mail address: testsuper@mail.com Password: Password (again): Superuser created successfully. |