Django

Code

Ticket #7554 (closed: wontfix)

Opened 3 months ago

Last modified 3 months ago

python manage.py dbshell does not enter password from settings.py

Reported by: Kaell <joshalto@hotmail.com> Assigned to: nobody
Milestone: Component: django-admin.py
Version: SVN Keywords: dbshell password
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

When using "python manage.py dbshell" the password from settings.py is not entered for you.

In order to read the password from settings.py one must have access to settings.py, in which case there is no security reason to not enter the password for the user. If they have read access, it should be entered for them. This is not currently the case.

This issue surely extends to django-admin.py as well as manage.py, though I have not tested this directly.

Attachments

Change History

06/26/08 22:40:43 changed by mtredinnick

  • status changed from new to closed.
  • needs_better_patch changed.
  • resolution set to wontfix.
  • needs_tests changed.
  • needs_docs changed.

Most of the database shells require the password to be entered at the prompt (i.e. via stdin). You cannot pass it on the command line. Faking out stdin input is unreliable and not particularly portable. So this isn't really possible to do. If you really don't want to have to enter the password each time, there's usually a way to set it up in the .psql or .mysql file in your home directory.


Add/Change #7554 (python manage.py dbshell does not enter password from settings.py)




Change Properties
Action