#7554: python manage.py dbshell does not enter password from settings.py
-------------------------------------+-------------------------------------
     Reporter:  Kaell <joshalto@…>   |                    Owner:  nobody
         Type:  Uncategorized        |                   Status:  closed
    Component:  Core (Management     |                  Version:  master
  commands)                          |               Resolution:  wontfix
     Severity:  Normal               |             Triage Stage:
     Keywords:  dbshell password     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by akaariai):

 For PostgreSQL: We could instruct users to save the password in their
 .pgpass file. First try with -w (never prompt for password) if that does
 not succeed add a hint "Can't login without password - try saving
 connection information to your .pgpass file (see ... for details)". Then
 try again without -w.

 Alternate solution is to create a temporary password file, and make sure
 it is not word-readable. Then, use the environment variable PGPASSFILE to
 use the temporary password file. It seems it should be easy to make this
 work on Linux, but Windows will be a bit harder (see
 http://docs.python.org/library/tempfile.html#tempfile.NamedTemporaryFile)

-- 
Ticket URL: <https://code.djangoproject.com/ticket/7554#comment:4>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to