代码之家  ›  专栏  ›  技术社区  ›  Fgblanch

在Google App Engine中使用PyMongo有可能吗?

  •  4
  • Fgblanch  · 技术社区  · 14 年前

    我正在尝试使用来自Google App Engine服务的MongoDB数据库,这可能吗?如何在Google App Engine上安装PyMongo驱动程序?谢谢

    3 回复  |  直到 14 年前
        1
  •  4
  •   Robert Kluin    14 年前

    不,不可能。阅读 Runtime Environment 章节。在应用程序引擎中,您必须使用 datastore ,或者可以使用HTTP调用访问的“数据库服务”。

    你可能想退房 TyphoonAE .

        2
  •  1
  •   Michael    14 年前

    这是不可能的,因为你没有访问应用程序引擎中的网络套接字的权限。只要你不能通过HTTP访问数据库,这是不可能的。

        3
  •  1
  •   Omar Bahareth    7 年前

    新的 runtime environment section 说:

    应用程序无法将数据写入本地文件系统或进行任意网络连接。

    我不确定这项规定在哪一个层次上仍然有效(因为这个问题已经7年没有被提出和回答了),但是我们 Tam 在标准的Google App Engine Python运行时成功地使用了PyMongo驱动程序,没有问题。我们只是跟着 official PyMongo tutorial 结果成功了。