Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django create superuser with first_name

echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('userUsername', 'userEmail', 'userPassword')" | python manage.py shell
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #django #create #superuser
ADD COMMENT
Topic
Name
7+8 =