Search
 
SCRIPT & CODE EXAMPLE
 

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()
Comment

change password django

>>> from django.contrib.auth.models import User
>>> u = User.objects.get(username='john')
>>> u.set_password('new password')
>>> u.save()
Comment

PREVIOUS NEXT
Code Example
Shell :: rem command in batch file 
Shell :: how to know which shell is specified for linux 
Shell :: Installing mongodb over ubuntu 22.04 
Shell :: npm install react-final-form 
Shell :: terminal delete directory not empty 
Shell :: update every python library 
Shell :: install pyenv 
Shell :: crontab execute shell script 
Shell :: git push pull asks for login everytime 
Shell :: how to open pdf from ubuntu terminal 
Shell :: linux install qt5widgets 
Shell :: assign home directory to user linux 
Shell :: git diff only file names 
Shell :: show seconds ubuntu 
Shell :: install node js from ubuntu 
Shell :: ubuntu see ram usage 
Shell :: git force rebase abort 
Shell :: install bootstrap angular 
Shell :: kubectl install on ubuntu 
Shell :: install mariadb amazon linux 2 
Shell :: HOW TLONG FOR VS TO INSTALL?!?!? 
Shell :: Please commit your changes or stash them before you merge 
Shell :: git reset one file 
Shell :: shell open program 
Shell :: wsl restart 
Shell :: how to check tls version 
Shell :: create csr ubuntu 
Shell :: github jabba 
Shell :: git commit to a new branch 
Shell :: list packages linux windows 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =