0

I maintain older app using Python, webapp2 and ndb. When running the app locally from PyCharm, dev_appserver uses local version of datastore but I'd like to use cloud datastore. Is this possible? In the end, when I run the app locally, it should access datastore of deployed app instead of local one.

This tutorial shows the solution but it is using datastore from google.cloud while my app uses ndb from google.appengine.ext.

Dread Boy
  • 772
  • 6
  • 28

1 Answers1

1

In order to access cloud storage from outside of GAE (locally) you need to switch to the datastore API.

See this thread: what's the difference between google.appengine.ext.ndb and gcloud.datastore?

Arne S
  • 1,004
  • 14
  • 41
  • That's not really an option as it would require a rewrite of certain parts of application. Well, that's a bummer :( thanks for the link! – Dread Boy Jun 08 '17 at 17:10
  • To bad - you could also have a look at this post to get the fuller picture https://stackoverflow.com/questions/40872410/client-library-for-cloud-datastore-on-app-engine-ndb-or-google-cloud-datastore – Arne S Jun 08 '17 at 17:24