Hi All,
    I get "No databases in this application" when I browse
http://127.0.0.1:8080/[application]/appadmin, I'm using GAE on local
(it work if I run web2py.py)

    I just write below code in db.py in my app for test.

try:
    from gluon.contrib.gql import *         # if running on Google App
Engine
except:
    db=SQLDB('sqlite://storage.db')         # if not, use SQLite or
other DB
else:
    db=GQLDB()                              # connect to Google
BigTable
    session.connect(request,response,db=db) # and store sessions there

#My code
db.define_table('users',
                SQLField('name', 'string'),
                SQLField('email', 'string'))

    How can I make it work on GAE?

Thanks for any help!
Sharekey

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