Answers for "django how to create superuser if does not exists on migration"

0

django how to create superuser if does not exists on migration

echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin', '[email protected]', 'password')" | python manage.py shell
Posted by: Guest on June-24-2021

Code answers related to "django how to create superuser if does not exists on migration"

Python Answers by Framework

Browse Popular Code Answers by Language