将 Jython 与 Django 一起使用?

发布于 2024-08-20 14:08:20 字数 72 浏览 4 评论 0原文

我计划将 Jython 与 Django 一起使用。我想知道 Jython 项目有多稳定,有多容易使用,以及它的开发者社区有多大。

I am planning to use Jython with Django. I want to know how stable the Jython project is, how easy to use it is, and how large its developer community is.

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

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

发布评论

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

评论(3

∝单色的世界 2024-08-27 14:08:20

Django 已被证明可以与 Jython 配合使用:

  • Jython 2.5 的特别重点是使其与 Django 等现代 Web 框架兼容。
  • 还有一个特殊的项目,django-jython,专注于使数据库后端和扩展可用于 Jython 开发。
  • 有关于 如何在 Jython 上运行 Django 的明确文档

理论上,Jython与 CPython 100% 兼容。实际上,某些扩展或库的代码可能编写得很糟糕,导致它们依赖于特定的 Python 实现,例如 CPython。 django-jython 项目明确提供了一个经过测试的解决方案来克服这个问题。当然,您仍然可以运行一些明确需要 CPython 的库(因此大部分是安全的)。

Django is proven to work with Jython:

  • Special focus in Jython 2.5 was to make it compatible with modern web frameworks like Django
  • There is also a special project, django-jython, that focuses on making database backends and extensions available for Jython development.
  • There is explicit documentation on how to run Django on Jython

In theory, Jython is 100% compatible with CPython. In practice, some extensions or libraries may have badly written code that make them dependent on a specific Python implementation such as CPython. The django-jython project explicitly provides a tested solution to overcome this problem. Of course you can still run across some libraries that explicitly require CPython (hence mostly safe).

昔梦 2024-08-27 14:08:20

我还没有将 Django 与 Jython 一起使用,所以我无法谈论这个具体问题,但我已经将 Jython 用于其他事情,并且我发现它最近非常稳定,并且与普通 Python 一样简单。我相信 Jython 中的“核心提交者”比 C-Python 中的要少得多(可能是数量的 1/3 或更少),如果这就是您所说的“开发人员社区”的意思,但我不太确定这有什么意义询问这个问题 - 您是否正在考虑加入开发者社区(Jython 或 Core Python)并想知道您可以在哪里产生最大的影响?

如果是这样的话,我认为关键问题并不在于有多少其他人已经在提供帮助,而是“你为聚会带来了什么”——如果你是 JVM 向导,或者是任何重要 Java 领域的专家框架,您可以为 Jython 社区带来真正的福音,而同样的技能对 C-Python 社区的帮助则要小得多;反之亦然,如果您是一个向导,比如说,具有自动配置和 C 编码系统调用,这对于 C-Python 社区来说非常宝贵,但对于 Jython 社区来说就没那么有用了。

I have not used Django with Jython, so I can't speak to that specific issue, but I've used Jython for other things and I've found it quite stable of late, and just as easy as plain Python. I believe the "core committers" in Jython are substantially fewer than in C-Python (maybe 1/3 the number or less), if that's what you mean by "developer community", but I'm not quite sure what's the point in asking about this -- are you considering joining either developer community (Jython or Core Python) and wondering where you could have the best impact?

If that's the case, I think the key issue isn't really how many others are already helping out, but, "what do you bring to the party" -- if you're a JVM wizard, or an expert at any important Java framework, you could be a real boon to the Jython community while that same skill would help much less in the C-Python community; vice versa, if you're a wizard, say, with autoconfigure and C-coded system calls, that would be precious for the C-Python community, but not as useful for the Jython community.

独享拥抱 2024-08-27 14:08:20

我在测试和快速开发中使用 Jython。
从我的角度来看,它是稳定的。

I use Jython in testing and rapid-development.
From my point of view it is stable.

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