I found it out.

To put a child connected to parent  i used" db.Key()" so

images=Images(parent=db.Key(CityKey))

and i worked.

Previous version worked in developement server but not on production.
This version above works in production server.


On Sep 29, 6:46 pm, SiVi <[email protected]> wrote:
> I get this error in production server
>
> "MyCity instance must have a complete key before it can be used as a
> parent."
>
> I post key of city from html form and create image with
>                 CityKey = cgi.escape(self.request.get('City'))
>                 images=Images(parent=MyCity(key=CityKey) )
>
> How i can overcome this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to