Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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()
 
PREVIOUS NEXT
Tagged: #djanog #shell #change #password
ADD COMMENT
Topic
Name
2+5 =