是否可以将 Django 与 Qooxdoo 框架一起使用?

发布于 2024-08-28 17:58:54 字数 131 浏览 3 评论 0 原文

伙计们,我想使用 Django 作为我的后端框架,使用 qooxdoo 作为前端框架。

这样做实用吗?

有人尝试这样做吗?

他们是怎么做到的?

链接和指针会很好。

迦特

Guys i would like to use Django as my backend framework and qooxdoo as the frontend framework.

Is it practical to do this?

Has anyone tried to do this?

How did they do it?

Links and pointers would nice.

Gath

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

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

发布评论

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

评论(1

两相知 2024-09-04 17:58:54

我没有使用 Django 和 qooxdoo 的直接经验,但对“实用吗?”这个问题的一般答案是:是的:)。虽然 Django 的默认渲染行为是生成 HTML(这不适合像使用 qooxdoo 构建的单页应用程序),但很容易切换到在请求上返回例如 Json,这是客户端与服务器之间通信的常见格式。一个 qooxdoo 前端和一个服务器。他们只是交换数据。

有人尝试这样做吗? - 是的,但他们没有除了前面提到的 Json 数据交换之外,还提供了有关如何使用 RPC4Django

AFAIK,没有更深入的 Django 集成,例如将 qooxdoo 与服务器上的 Django 视图交互(如 dojango)。

希望这有帮助。

更新:

  • 有一个精心设计的产品,Sava,使用 qooxdoo 作为前端, Django 用于后端。有一个简短的概述,但我认为它是闭源的,所以它只证明了“使用该技术堆栈的实用性”。您可能不会详细了解它是如何实现的。
  • 还有 enre,一个基于 qooxdoo 的 Django GUI。但我对它不熟悉,乍一看也找不到任何文档,所以我不确定这到底意味着什么。

I have no direct experience using Django and qooxdoo, but the general answer to the question "Is it practical?" is: yes :). Although Django's default rendering behaviour is to produce HTML (which is unsuitable for a single page application like the ones you build with qooxdoo), it's easy to switch to returning e.g. Json on requests, which is a common format for the client-server communication between a qooxdoo frontend and a server. They just exchange data.

Has anyone tried to do this? - Yes, but they don't give much information on how, other than the before mentioned Json data exchange, implementing a Json RPC server in Django using RPC4Django.

AFAIK, there is no deeper Django integration, e.g. interfacing qooxdoo with Django views on the server (like dojango).

Hope this helps.

Update:

  • There is one elaborate product, Sava, using qooxdoo for the frontend and Django for the backend. There is a short overview, but I think it's closed-source so it only testifies to the "practicality" of using this technology stack. You probably won't learn in detail how it is realized.
  • There is also enre, a qooxdoo-based GUI for Django. But I'm not familiar with it, and couldn't find any documentation on first glance, so I'm not sure what this really means.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文