Python相当于php的virtual()

2024-09-30 00:28:16 发布

您现在位置:Python中文网/ 问答频道 /正文

你知道有没有一个python等价的php的^{}?在

我的配置是python、djanogo、mod\wsgi、apache

尝试包括一个脚本,其中只有使用上述include的php示例,并且还需要包含在所有网站的页面中。在

谢谢

乐:我包括了一个.cgi脚本


Tags: 脚本mod示例wsgiinclude网站apache页面
1条回答
网友
1楼 · 发布于 2024-09-30 00:28:16

我看到的唯一的参考是

http://www.modpython.org/pipermail/mod_python/2004-January/014834.html

哪个状态In theroy you can use the Apache 2.x chain handlers feature, where more than one content handler can process the request. I say in theroy because I've read about it, but never tried it =)

从PHP手册,virtual() is an Apache-specific function which is similar to <! #include virtual... > in mod_include. It performs an Apache sub-request . . . This function is only supported when PHP is installed as an Apache module.

下面是关于Apache过滤器的信息链接,这就是所谓的“链处理”:

http://httpd.apache.org/docs/2.2/filter.html

文档应该能够在从mod_wsgi输出后由mod_include处理(或者在之前,如果您需要的话)。在

相关问题 更多 >

    热门问题