how to use a specific driver for the database

35 views
Skip to first unread message

Lars

unread,
Aug 30, 2017, 11:16:32 AM8/30/17
to web2py-users
Hi,
How can we use for example : psycopg2 instead of pg8000 which is default ?
Thanks

Anthony

unread,
Aug 30, 2017, 11:49:17 AM8/30/17
to web2py-users
If psycopg2 is installed, then it will be used by default.

In any case, you can be explicit via the connection string:

'postgres:psycopg2://...'

Anthony

Lars

unread,
Aug 30, 2017, 12:01:09 PM8/30/17
to web2py-users
Hi Anthony,

psycopg2 was installed but (don't know if related) I use the last web2py on python3.5 and it didn't find it.
It should now.

Thank you ;)
Reply all
Reply to author
Forward
0 new messages