Spaces in psycopg2 passwords

7 views
Skip to first unread message

AzMoo

unread,
May 19, 2009, 10:43:14 AM5/19/09
to Django developers
Hello everybody,

I just came across an issue with django's implementation of psycopg2,
in that as of Changeset 9981 it will no longer accept passwords with
spaces in them.

In this changeset the use of a DSN was removed in favour of named
arguments, and as the password is no longer quoted, psycopg2 is
rejecting it.

This is ultimately a problem with psycopg2 as oppose to django,
however I feel that it would be valuable to work around the problem by
changing back to the use of a DSN like it was originally, and keep the
support for DATABASE_OPTIONS by joining the dictionary into a
key=value string and appending it to the DSN.

What are your thoughts on this?

Cheers,
Matt Magin
Reply all
Reply to author
Forward
0 new messages