google-app-engine 上的 django-cms (django-norel)

发布于 2024-12-26 12:49:52 字数 358 浏览 1 评论 0原文

我正在尝试让 django-cms 在 google-app-engine 上工作。有人成功地让这样的野兽工作吗?

我有一个示例 django-norel 应用程序可以正确工作和部署,我有 django-cms 以一堆绝对神秘的方式在本地崩溃。

DatabaseError at /
First ordering property must be the same as inequality filter property, if specified for this query; received site, expected publisher_state

在我花大量时间尝试寻找错误之前,有什么成功的案例吗?

I'm trying to get the django-cms to work on google-app-engine. Did anyone succeed in getting such a beast to work?

I've got a sample django-norel app to work and deploy correctly, I've got the django-cms to locally crash in a bunch of absolutely cryptic ways.

DatabaseError at /
First ordering property must be the same as inequality filter property, if specified for this query; received site, expected publisher_state

Before I spend a lot of time trying to bughunt it, any success stories?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

泼猴你往哪里跑 2025-01-02 12:49:52

该错误意味着您的查询在某些字段上具有不等式过滤器并按另一个字段排序。不过,appengine 的数据存储区不允许这样做(请查看 的“限制”部分有关查询的文档)。而且没有简单的方法可以解决这个问题

我有使用 django 和 google-app-engine 的经验,也曾使用过 django-cms 。根据我的经验,django 对于 appengine 来说是一个非常糟糕的选择。 Django-ORM在appengine中没有用处,django-nonrell并没有实现django-orm的所有功能。至于 django-cms 我什至不会考虑在 appengine 上运行它。

The error means that you have a query which has inequality filter on some field and ordering by another field. However this is not allowed on appengine's datastore (check the "Restrictions" section of documentation on queries). And well there is no easy way to fix it.

I have experience with both django and google-app-engine also I have worked with django-cms in the past. In my experience django was a very bad choice for appengine. Django-ORM is useless in appengine, the django-nonrell does not implement all functions of django-orm. As for django-cms I would not even consider to run it on appengine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文