I am working with Google App Engine and Python.
I have a model with Items.
Immediately after I insert an item with item.put()
I want to get it’s key and redirect to a page using this key.
Something like:
redirectUrl = "/view/key/%s/" % item.key
self.redirect(redirectUrl)
Thanks for the initiative Scott Kirkwood.
I was actually missing the ()
Good to know that in google datastore you don’t need to use anything like Scope_identity, but you can just get the item.key() just after item.put()..