<p>我最近学会了Python。我喜欢。我只想把它用于web开发。这个想法引起了所有的麻烦。但我喜欢这些麻烦:)</p>
<p>来自PHP世界只有一个标准化的方法。我也希望如此,于是搜索python&apache。在</p>
<p><a href="https://stackoverflow.com/questions/449055/setting-up-python-on-windows-apache">Setting up Python on Windows/ Apache?</a>说</p>
<blockquote>
<p>Stay away from mod_python. One common
misleading idea is that mod_python is
like mod_php, but for python. That is
not true.</p>
</blockquote>
<p>那么在python中mod_php的等价物是什么呢?在</p>
<p>关于这一点我需要澄清一下<a href="https://stackoverflow.com/questions/219110/how-python-web-frameworks-wsgi-and-cgi-fit-together">How Python web frameworks, WSGI and CGI fit together</a></p>
<p>CGI、FastCGI和SCGI是语言不可知论者。您可以用Perl、Python、C、bash甚至汇编编写CGI脚本。所以,我猜<code>mod_cgi</code>、<code>mod_fastcgi</code>、<code>mod_scgi</code>是它们对应的apache模块。正确的?在</p>
<p>WSGI是一种优化/改进的高效版本,专门为python语言而设计。为了使用这个<code>mod_wsgi</code>是一种方法。正确的?在</p>
<p>这省略了<code>mod_python</code>。那是什么?在</p>
<blockquote>
<p>Apache -> mod_fastcgi -> FLUP (via CGI protocol) -> Django (via WSGI protocol)
Flup is another way to run with wsgi for any webserver that can speak FCGI, SCGI or AJP</p>
</blockquote>
<p>什么是FLUP?什么是AJP?Django是怎么出现在照片里的?在</p>
<p>这些问题引发了对PHP的质疑。它实际运行情况如何?它使用什么技术?mod帴php和mod帴python有什么区别?在</p>
<p>将来如果我想使用Perl或Java,那么我会再次感到困惑吗?请有人解释清楚并给出一个<strong>完整的图片。</strong></p>