2010-10-05 15 views
1

我能有國防部,蟒蛇在Apache2的工作是第一次,我可以通過增加或者獲取PSP和出版商處理程序的Apache2 MOD-蟒蛇一起工作

AddHandler mod_python .py 
PythonHandler mod_python.publisher 
PythonDebug On 

與PSP和Publisher處理程序有點玩或者

AddHandler mod_python .psp 
PythonHandler mod_python.psp 
PythonDebug On 

到Ubuntu lucid lynx上的/ etc/apache2/sites-available/default。

我試圖把他們兩個,但沒有奏效。現在我需要PSP和Publisher一起工作。

還有別的東西,任何人都知道支持爲此突出顯示的文本編輯器?最好是如果有代碼完成或IDE。

+0

'mod_python'已經死了。改爲遷移到WSGI CMS。 – 2010-10-05 05:20:53

+0

「目前mod_python並沒有處於積極的發展階段,這並不意味着它像某些人所聲稱的那樣」死了「,它只是在代碼和項目足夠成熟時才需要維護它。 – Vlad 2012-09-20 14:13:22

回答

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