Youssef, if I remember correctly, you can only have one datastore and one app-engine in a Google cloud project. However, you should be able to access entities of a different datastore (i.e. in a different project) by defining the app parameter in the NDB Key constructor <https://cloud.google.com/appengine/docs/python/ndb/keyclass#Constructors>. Certainly, you would need to manually add permissions for your app in the other (test) datastore.
Alternatively, you could use just the same datastore, but a different namespace, e.g. "test". Or if you already use namespaces for multi-tenancy, you could have multiple namespaces test-1, test-2 etc. to run tests regarding multi-tenancy features. Ani On Monday, April 11, 2016 at 3:20:34 PM UTC+2, youssef dehbi alaoui wrote: > > hi everyone i need in my application two types of data (but same > entities), one for testing and the other for production... so i'm wondering > if there is a solution to make a difference between these two types like > having two datastores???? > Thanks. > -- HATZIS Edelstahlbearbeitung GmbH Hojen 2 87490 Haldenwang (Allgäu) Germany Handelsregister Kempten (Allgäu): HRB 4204 Geschäftsführer: Paulos Hatzis, Charalampos Hatzis Umsatzsteuer-Identifikationsnummer: DE 128791802 GLN: 42 504331 0000 6 http://www.hatzis.de/ -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/d70632e9-1fd9-4fe3-a514-114902394810%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.