Normally the datastore does not create tables until you put data in
them.
Can you create posts using?

http://..../yourapp/appadmin

I do not see anything wrong in this line

    form = crud.create(db.post)

Can you tells us what errors you get from GAE?

Massimo

On Jan 1, 8:45 pm, Chad <chad.mic...@gmail.com> wrote:
> I'm really enjoying learning web2py, but I am running into problems
> when using it with Google App Engine.
>
> I followed the example athttp://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