O.K. - Sorted that one out on my own by simply stripping out
the other code db.py and making db.py simply a one liner
db=SQLDB("postgres://UserName:[EMAIL PROTECTED]:5432/mydata")

Now another problem...

Traceback (most recent call last):
  File "gluon\restricted.pyc", line 62, in restricted
  File "I:\web2py\applications\bookstor/models/db.py", line 4, in
<module>
  File "gluon\sql.pyc", line 406, in __init__
  File "gluon\sql.pyc", line 334, in _pool_connection
  File "gluon\sql.pyc", line 406, in <lambda>
NameError: global name 'psycopg2' is not defined

Which is in fact loaded in C:\Python25\Lib\site-packages\psycopg2,
but I'm unsure how to connect it to web2py



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to