我可以让mod-python第一次在apache2上工作,我可以通过添加
来稍微使用PSP和Publisher处理程序AddHandler mod_python .py
PythonHandler mod_python.publisher
PythonDebug On
或者
AddHandler mod_python .psp
PythonHandler mod_python.psp
PythonDebug On
到Ubuntu lucid lynx上的/ etc / apache2 / sites-available / default。
我试过把它们都放了但是没用。现在我需要PSP和Publisher一起工作。
还有别的,有人知道一个支持突出显示的文本编辑器吗?最好是代码完成或IDE。
答案 0 :(得分:2)
这个适用于我:
<Directory /var/www>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
AddHandler mod_python .py
PythonHandler mod_python.publisher | .py
AddHandler mod_python .psp .psp_
PythonHandler mod_python.psp | .psp .psp_
PythonDebug On
</Directory>
有关详细信息,请参阅手册:http://www.modpython.org/live/current/doc-html/dir-handlers-syn.html