[Python-modules-team] Bug#781033: python-django: "manage dbshell" fails to transmit settings password to postgresql

Jean-Michel Nirgal Vourgère jmv_deb at nirgal.com
Mon Mar 23 16:10:28 UTC 2015


Package: python-django
Version: 1.7.6-1
Severity: minor

Hi

When one runs the generated ./manage.py with "runserver" argument,
django find the host, dbname, username, and password and runs ok.

But when one runs it with "dbshell" argument, django only uses host,
dbname and username. Then a prompt asks the user for the password.

I expected django to use the password from settings, as it does for
other commands.

I'm using postgresql.

$ grep HOST settings.py
'HOST': '127.0.0.1', # Empty for localhost through domain sockets or
'127.0.0.1' for localhost through TCP.


-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages python-django depends on:
ii  python-django-common  1.7.6-1
pn  python:any            <none>

Versions of packages python-django recommends:
ii  libjs-jquery     1.7.2+dfsg-3.2
ii  python-sqlparse  0.1.13-2
ii  python-tz        2012c+dfsg-0.1

Versions of packages python-django suggests:
pn  bpython                                        <none>
pn  geoip-database-extra | geoip-database-contrib  <none>
ii  gettext                                        0.19.3-2
ii  ipython                                        2.3.0-2
pn  libgdal1                                       <none>
pn  python-bcrypt                                  <none>
pn  python-django-doc                              <none>
pn  python-flup                                    <none>
pn  python-memcache                                <none>
pn  python-mysqldb                                 <none>
ii  python-pil                                     2.6.1-1+b1
ii  python-psycopg2                                2.5.4+dfsg-1
pn  python-sqlite                                  <none>
ii  python-yaml                                    3.11-2

-- no debconf information

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20150323/67d48bb8/attachment.sig>


More information about the Python-modules-team mailing list