#33296: Allow manage.py changepassword to use DJANGO_SUPERUSER_PASSWORD
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
johnthagen |
Type: New | Status: new
feature |
Component: | Version: 3.2
contrib.auth | Keywords: django-admin
Severity: Normal | changepassword
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
The `createsuperuser` admin command can use a `DJANGO_SUPERUSER_PASSWORD`
environment variable to set the password. This is very useful for
automated/unattended installations as well as running Django within Docker
where it is simpler to pass data into the container using environment
variables.
https://docs.djangoproject.com/en/3.2/ref/django-admin/#createsuperuser
The `changepassword` admin command is used in a very similar way. It would
be helpful if this command also provided a `--no-input` variant that would
read from the `DJANGO_SUPERUSER_PASSWORD` environment variable and change
a users password without interactively prompting for input.
https://docs.djangoproject.com/en/3.2/ref/django-admin/#changepassword
--
Ticket URL: <https://code.djangoproject.com/ticket/33296>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/053.c237bb07a475eba8d3e5f70671901526%40djangoproject.com.