apache 在 IIS 上运行 Python 和 Django

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2112525/
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-09-13 18:40:04  来源:igfitidea点击:

Running Python & Django on IIS

asp.netpythonasp.net-mvcapacheiis

提问by the_drow

Is it possible to run Python & Django on IIS?
I am going to be a Lead Developer in some web design company and right now they are using classic ASP and ASP.NET.
As far as I can see ASP.NET MVC is not mature. Should I recommend Python & Django stack?
If it's not possible to run Python on IIS what do you think I should do? Stick with ASP.NET which I don't know? I don't know python well as well but I'm more comfortable with it.
Can I run IIS and Apache in parallel?

是否可以在 IIS 上运行 Python 和 Django?
我将成为一些网页设计公司的首席开发人员,现在他们正在使用经典的 ASP 和 ASP.NET。
就我所见,ASP.NET MVC 还不成熟。我应该推荐 Python 和 Django 堆栈吗?
如果无法在 IIS 上运行 Python,您认为我应该怎么做?坚持使用我不知道的 ASP.NET?我也不太了解 python,但我对它更熟悉。
我可以并行运行 IIS 和 Apache 吗?

回答by Cerin

There's two issue here, technological and psycological.

这里有两个问题,技术和心理问题。

Technologically, yes, it's definitely possible. In fact, Django has a wiki articleabout this. Google also shows a lot of similar tutorials. Apache and IIS can also run on the same machine (I'm actually doing that right now from a development machine).

从技术上讲,是的,这绝对是可能的。事实上,Django 有一篇关于这个的wiki 文章。谷歌也展示了很多类似的教程。Apache 和 IIS 也可以在同一台机器上运行(我现在实际上是在一台开发机器上运行)。

The bigger issue will be psycological, in the form of backlash you'll get from the other developers. I agree that Django kicks the pants off ASP.NET, but you're probably going to find that an ASP.NET shop is going to be married to ASP.NET and will likely ignore your suggestion to try anything else, much less Django.

更大的问题将是心理上的,以您将从其他开发人员那里得到的强烈反对的形式。我同意 Django 对 ASP.NET 嗤之以鼻,但您可能会发现 ASP.NET 商店将与 ASP.NET 联姻,并且可能会忽略您尝试其他任何东西的建议,更不用说 Django。

回答by Mike A

We've been running django on IIS for a couple of years using PyISAPIe. It's a fairly big site, about 150,000 users. We're moving to linux/apache though, partly cos PyISAPIe isn't great.

我们已经使用 PyISAPIe 在 IIS 上运行 django 几年了。这是一个相当大的网站,大约有 150,000 名用户。我们正在转向 linux/apache,部分原因是 PyISAPIe 不是很好。

Case in point - WebKit browsers don't work well with it, it seems to mess up the chunking. That's tolerable for us as we are allowed to limit our users to FF/IE7+, but annoys me on a mac as I much prefer Safari to FF.

举个例子 - WebKit 浏览器不能很好地使用它,它似乎弄乱了分块。这对我们来说是可以容忍的,因为我们被允许将我们的用户限制为 FF/IE7+,但在 mac 上让我烦恼,因为我更喜欢 Safari 而不是 FF。