I'm really enjoying learning web2py, but I am running into problems
when using it with Google App Engine.

I followed the example at
http://www.web2py.com/AlterEgo/default/show/253
which works fine locally, but when trying to run in GAE I can't seem
to create posts. When I look at the entities using the Datastore
Viewer I do not see a posts entitiy option. I see web2py_* tables and
auth_* tables.

I tried to add an action to create posts but I receive an error when
running it in GAE (works when running locally). I receive an error on
the line that has db.posts (first line of function).

--- begin code ---

def create_post():
    form = crud.create(db.post)
    return dict(form=form)

--- end code ---

As a side note how does one create an instance of a database model? I
wanted to create an action that would just quickly create an instance
of post and save it with predetermined values, but I couldn't figure
out how to do it.

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to