appadmin does not work well on GAE. You should use the GAE web interface instead.
Anyway, if you get to appadmin, then your code below is doing its job. Massimo On Nov 19, 7:47 pm, sharekey <[EMAIL PROTECTED]> wrote: > Hi All, > I get "No databases in this application" when I > browsehttp://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 -~----------~----~----~----~------~----~------~--~---