DEV Community

Gilbert Ngeno
Gilbert Ngeno

Posted on

How to reset Django admin password

python manage.py createsuperuser will create another superuser, you will be able to log into admin and remember your username.

To give a normal user privileges, open a shell with python manage.py shell and try:

from django.contrib.auth.models import User
user = User.objects.get(username='normaluser')
user.is_superuser = True
user.save()

Top comments (0)