****** I keep getting this error on test.

Traceback (most recent call last):
  File "gluon\restricted.pyc", line 61, in restricted
  File "I:\web2py\applications\bookstor/models/db.py", line 30
 
#########################################################################
 
^
SyntaxError: invalid syntax

******* Whenever attempting to attached to known and valid remote and
local postgre database.

******* db.py was modifed as follows.
try:
    from gluon.contrib.gql import *         # if running on Google App
Engine
except:
#    db=SQLDB('sqlite://storage.db')         #  SQLite or other DB
     db=SQLDB("postgres://UserName:[EMAIL PROTECTED]:5432/mydata")
## PostGreSQL
else:
    db=GQLDB()                              # connect to Google
BigTable
    session.connect(request,response,db=db) # and store sessions there
#session.forget()                           # uncomment for no session
at all

***** I've also tried 127.0.0.1 instead of localhost. Other
applications are able
       to access these databases with same parameters.

Please advise


--~--~---------~--~----~------------~-------~--~----~
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