Answers for "django reset superuser password"

1

djanog shell change password

from django.contrib.auth.models import User

usr = User.objects.get(username='your username')
usr.is_superuser=True
usr.is_staff=True
usr.set_password('raw password')
usr.save()
Posted by: Guest on January-03-2021
2

django admin password reset

python manage.py changepassword <user_name>
Posted by: Guest on May-11-2020
2

how to reset username and password in django admin

python manage.py changepassword <user_name>
Posted by: Guest on September-04-2020

Code answers related to "django reset superuser password"

Python Answers by Framework

Browse Popular Code Answers by Language