On May 23, 11:46 am, Tanuva <tan...@googlemail.com> wrote: > If I connect manually using psql, I automatically get an ssl connection. > Non-ssl isn't supposed to work in this case. Removing the sslmode from > the django config doesn't change anything as I noted in the paste. > > > The error you are getting is the same you get if you would try to > > connect to a machine with no postgres installation at all. So, one > > possibility is that your host or port are not correct for some reason. > > Thats what puzzles me: if I use psycopg2 by hand > (http://dpaste.org/Ozisz/), the connection works fine with the same > credentials I supplied to Django. The table I created there appears in > pgadmin. > > Marcel
Put a breakpoint in django/db/backends/postgresql_psycopg2/ base.py:_cursor() and see what the connect parameters are. Double check pg_hba.conf and postgresql.conf and make sure they allow you to connect from the webapp machine to the DB. It is hard to help you more through a mailing list. - Anssi -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.