From this question, I see that it's possible to update the creation of superusers in Django using:
echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin', 'admin@myproject.com', 'password')" | python manage.py shell
This works for creating superusers, but not for updating them. Is there a way to automate the creation or update of superusers? Something similar to create_or_update
.