I've been using SQLite and am trying to migrate to PostgreSQL.
I'm getting this error immediately when starting my application...
NameError: global name 'psycopg2' is not defined
...on this configuration...
operating system: Windows XP
web2py: version 1.66.0 source
python: version 2.6.2 Windows
psycopg2: version 2.0.12 for python 2.6
Anything obviously wrong?
Thanks.
BTW, in case this hasn't already been pointed out, page 213 of the
current manual has a typo. It says...
db=SQLDB("postgres:myuser:mypassw...@localhost:5432/mydb")
but should say...
db=SQLDB("postgres://myuser:mypassw...@localhost:5432/mydb")
(note the // is missing in the first version)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---