This is odd. Normally, web2py flushes a html error saying that he tried to 
connect five times (i guess) but with no success. Have you tried to look 
the sql.log? And try check the params that Dragan described to you. 


Em domingo, 8 de setembro de 2013 12h47min38s UTC-3, Sartglider escreveu:
>
> Hi,
> I'm really new to web2py - less than 24 hours - 
> Trying to follow this example 
> http://web2py.com/books/default/chapter/29/03/overview#Say-hello
> it worked fine with sqlite, so I try to connect to a postgresql database 
> in another server:
> the model is this one:
> db = DAL("postgres://root:<password>@192.168.0.98/teste")
>
> db.define_table('equipments',
>    Field('eq_id', unique=True),
>    Field('eq_model'),
>    Field('eq_aka'),
>    format = '%(title)s')
>
> db.equipments.eq_id.requires = IS_NOT_IN_DB(db, db.equipments.eq_model)
> db.equipments.eq_model.requires = IS_IN_DB(db, db.equipments.eq_id, 
> '%(title)s')
>
> db.equipments.eq_id.writable = False
>
> but I get no errors just the browser trying to connect.
>
> Thank you in advance for your help.
>
>
> Postgresq server: debian 6 & postgresql 8.4
> web2Py server: debian 7, python 2.7
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to