You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The python3 manage.py createsuperuser command accepts environment variables DJANGO_SUPERUSER_USERNAME and DJANGO_SUPERUSER_PASSWORD as its parameters.
On the other hand, the python3 manage.py createorupdateuser --superuser command only looks for the DJANGO_SUPERUSER_PASSWORD variable, but ignores DJANGO_SUPERUSER_USERNAME.
As a workaround, I am calling the command in the following way:
Hello, I have noticed this inconsistency:
The
python3 manage.py createsuperuser
command accepts environment variablesDJANGO_SUPERUSER_USERNAME
andDJANGO_SUPERUSER_PASSWORD
as its parameters.On the other hand, the
python3 manage.py createorupdateuser --superuser
command only looks for theDJANGO_SUPERUSER_PASSWORD
variable, but ignoresDJANGO_SUPERUSER_USERNAME
.As a workaround, I am calling the command in the following way:
python3 manage.py createorupdateuser --superuser --username "$DJANGO_SUPERUSER_USERNAME"
But it would be nice if the commands behaved in a consistent way.
The text was updated successfully, but these errors were encountered: