Re: [web2py] postgresql connection problem -

2010-05-27 Thread Julius Minka
I found something in the archive. This seems to be multiple python versions issue, but still do not have a solution. Unfortunately, this server is preinstalled with python2.4 and I am trying to use 2.6, which can't be probably found under mod_wsgi Julius V Štvrtok, 27. máj 2010 o 12:54 +0200, Jul

Re: [web2py] postgresql connection problem -

2010-05-27 Thread Julius Minka
I was too fast. It works when accessed on port. It doesn't when accessed through mod_wsgi: File "gluon/sql.py", line 3835, in DAL migrate=migrate, fake_migrate=fake_migrate) File "gluon/sql.py", line 959, in __init__ self._pool_connection(lambda : psycopg2.connect(msg)) File "gluon/sq

Re: [web2py] postgresql connection problem - SOLVED

2010-05-27 Thread Julius Minka
I found the reason by removing exception catching when connecting to Postgres in gluon/sql.py. It told me that this line self._execute("SET standard_conforming_strings=on;") is a problem. I commented it out and everything is fine until now. Can this removal have a side effect? Julius V Št

Re: [web2py] postgresql connection problem

2010-05-27 Thread Julius Minka
I did that as first thing. No luck. I changed it to IP as I it works from command line. Julius V Streda, 26. máj 2010 o 19:41 -0500, Thadeus Burgess napísal(a): > Try > > postgres://w2p:passw...@localhost:5432/w2p > > -- > Thadeus > > > > > > On Wed, May 26, 2010 at 5:17 PM, Julius Minka

Re: [web2py] postgresql connection problem

2010-05-26 Thread Thadeus Burgess
Try postgres://w2p:passw...@localhost:5432/w2p -- Thadeus On Wed, May 26, 2010 at 5:17 PM, Julius Minka wrote: > This is virtual server with centos 5.5 in internet. > I have successfully instaled web2py with Apache and mod_wsgi based > mainly on instructions from > http://web2py.com/AlterEg

[web2py] postgresql connection problem

2010-05-26 Thread Julius Minka
This is virtual server with centos 5.5 in internet. I have successfully instaled web2py with Apache and mod_wsgi based mainly on instructions from http://web2py.com/AlterEgo/default/show/239 and http://web2py.com/AlterEgo/default/show/240 Probably last step is missing. I am getting this error wh