Did anyone have this example working on GAE?

I can get it to come up locally on GAE, but no records that I add show
up in the todo list.

I changed the app.yaml file to:

application: myappname
version: 1
api_version: 1
runtime: python

derived_file_type:
- python_precompiled

handlers:

- url: /
  static_files: applications/init/static/output/TodoApp.html
  upload: applications/init/static/output/TodoApp.html

- url: /(.*)
  static_files: applications/init/static/output/\1
  upload: applications/init/static/output/(.+)

- url: /jsonrpc
  script: gaehandler.py


My db.py looks like:

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

db=SQLDB('sqlite://storage.db')
db.define_table('todo', db.Field('task'))

from gluon.tools import Service     # new in web2py 1.56
service = Service(globals())

Reply via email to