Frage

Ich versuche, eine MongoDB-Datenbank aus einem Google App Engine-Dienst zu verwenden, ist das möglich? Wie installiere ich den PyMongo Treiber auf Google App Engine? Dank

War es hilfreich?

Lösung

No, it is not possible. Read the Runtime Environment section. On App Engine you'll have to use the datastore, or a 'database service' you can access using HTTP calls.

You might want to check out TyphoonAE.

Andere Tipps

It's not possible because you don't have access to networks sockets in App Engine. As long as you cannot access the database via HTTP, it's impossible.

The new runtime environment section says:

an app cannot write data to the local file system or make arbitrary network connections.

I am not sure to which level this is still being enforced (seeing that it's 7 years since the question was asked and answered), but we at Tam have successfully used the PyMongo driver in the standard Google App Engine Python runtime without issues. We simply followed the official PyMongo tutorial and it worked out.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top