【问题标题】:No way to run pymongo with gunicorn?没有办法用 gunicorn 运行 pymongo 吗?
【发布时间】:2012-12-12 06:08:52
【问题描述】:

好像 pymongo 不能用 gunicorn 运行?

我的堆栈是 Django + MongoEngine(pymongo 的包装器),现在尝试实现 Web 套接字(gevent),因此它需要与 gunicorn 服务器一起运行。但是,当与 Gunicorn 一起运行时。不需要任何数据库命中的登录页面,它加载正常,但在登录(命中数据库)后它会做一些时髦的事情并在所有页面中返回“AssertionError:ids don't match”错误。

有没有人和我一样的经历?如果您知道解决方案,请告诉我。

我正在运行 Django 1.4 + pymongo 2.2.1

【问题讨论】:

    标签: django pymongo gunicorn


    【解决方案1】:

    将 pymongo 升级到 2.4.1 有所帮助。工作没有任何问题。

    【讨论】:

      猜你喜欢
      • 2020-08-05
      • 1970-01-01
      • 2012-06-07
      • 2020-09-18
      • 2015-10-01
      • 2021-10-10
      • 2019-05-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多