Here is some code that can show you what i'm trying to do:
e = Employee(key_name = 'some_key_name',name='John Bonham')
db.put_async(e)
If i do it, and after some time i try to get it
e = Employee.get_by_key_name('some_key_name') # e is None
It doesn't work. e is None! But, if i do this:
e = Employee(key_name = 'some_key_name',name='John Bonham')
op = db.put_async(e)
op.get_result()
It works fine.
What am i missing?
*Important Note: I wait some time to check if the object is created! I don't
do get after the call put_async. But, it still doesn't work, even a minute
after. I'm in the Development Server!*
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine/-/Ty9OYWVhn70J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.