Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistency between createsuperuser and createorupdateuser #382

Open
MichaelGrafnetter opened this issue Jan 13, 2025 · 1 comment
Open

Comments

@MichaelGrafnetter
Copy link

Hello, I have noticed this inconsistency:

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:

python3 manage.py createorupdateuser --superuser --username "$DJANGO_SUPERUSER_USERNAME"

But it would be nice if the commands behaved in a consistent way.

@MWedl
Copy link
Contributor

MWedl commented Jan 14, 2025

Thanks for the suggestion. We will implement the env variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants