python IronPython 上的 Django

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/425990/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-03 20:04:34  来源:igfitidea点击:

Django on IronPython

pythondjangoironpython

提问by Xian

I am interested in getting an install of Django running on IronPython, has anyone had any success getting this running with some level of success?

我有兴趣安装在 IronPython 上运行的 Django,有没有人成功地运行它并取得一定程度的成功?

If so can you please tell of your experiences, performance, suggest some tips, resources and gotchas?

如果是这样,您能否谈谈您的经验、表现、建议一些技巧、资源和陷阱?

采纳答案by Serx

Besides the Jeff Hardy blog post on Django + IronPythonmentioned by Tony Meyer, it might be useful to also read Jeff's two other posts in the same series on his struggles with IronPython, easy_install and zlib. The first is Solving the zlib problemwhich discusses the absence of zlib for IronPython; hence, no easyinstall. Jeff reimplemented zlib based on ComponentAce's zlib.net. And finally, in easy_install on IronPython, Part DeuxJeff discusses some final tweaks that are needed before easy_install can be used with IronPython.

除了Tony Meyer 提到的关于Django + IronPython的 Jeff Hardy 博客文章之外,阅读 Jeff 在同一系列中关于他与 IronPython 的斗争的另外两篇文章,easy_install 和 zlib 可能也很有用。第一个是解决 zlib 问题该问题讨论了 IronPython 缺少 zlib;因此,没有easyinstall。Jeff 基于 ComponentAce 的 zlib.net 重新实现了 zlib。最后,在IronPython上的easy_install 中,Part DeuxJeff 讨论了在将 easy_install 与 IronPython 一起使用之前需要进行的一些最终调整。

回答by Tony Meyer

This was demoedat last year's PyCon (the detailsare also available). More recently, Jeff Hardy has blogged about this, including suggestions.

这是在去年的 PyCon 上演示的(详细信息也可用)。最近,Jeff Hardy 发表了关于此的博客,包括建议。

回答by jsalonen

I don't think Django is yet working on IronPython, but I'm not saying it cannot be done.

我认为 Django 还没有在 IronPython 上工作,但我并不是说它不能完成。

Django-ironpythonproject is a work currently underway to run Django on IronPython. The project has reported 65.7% test pass ratewith sqlite on 2nd of May 2010.

Django-ironpython项目是目前正在进行的一项在 IronPython 上运行 Django 的工作。该项目在 2010 年 5 月 2 日报告了65.7% 的sqlite测试通过率