Message-ID: <4W2g2h$b5V@newsmth.net>
Subject: ����一��apache��mod_python����������
Date: Mon, 10 Sep 2007 05:52:14 +0000
From: weige@newsmth.net-SPAM.no (���呖�始�耍��煤�学习��)
Path: news.cnusenet.org!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.lang.python.mbox.zip!g2news2.google.com!news3.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.simtel.ru!Simtel.RU!news.newsmth.net!NEWSMTH
Newsgroups: cn.bbs.comp.lang.python
Organization: 水木����
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Python/P/M.1189403275.A0
Xref: news.cnusenet.org cn.bbs.comp.lang.python:37838


LoadModule python_module modules/mod_python.so
<Directory "D:/work/web-apps">
        AddHandler mod_python .py
        PythonHandler mptest
        PythonAutoReload On
        PythonDebug On
</Directory>

����mptest.py�募�:
from mod_python import apache

def handler(req):
    req.write("Hello World!")
    return apache.OK

��么���欠��卮���
Mod_python error: "PythonHandler mptest"

Traceback (most recent call last):

  File "C:\Python23\Lib\site-packages\mod_python\apache.py", line 287, in HandlerDispatch
    log=debug)

  File "C:\Python23\Lib\site-packages\mod_python\apache.py", line 461, in import_module
    f, p, d = imp.find_module(parts[i], path)

ImportError: No module named mptest

--
   �����些��些��些��些��些��些��些��些��些��些��些��些���
   ��  ��  �������烯��│�│�螬Φ末������签��茅����������q�r
   �����丞��丞��丞��丞��丞��丞��丞��丞��丞��丞��丞��丞� �u�u
   �����些��些��些��些��些��些��些��些��些��些��些���-�熄u
   ���桐��雪�失��去���签��│惜���蜘��讴��末��药������e
   �����丞��丞��丞��丞��丞��丐��丞��丞��丞��丞��丞��丞���


�� ��源:��水木���� newsmth.net��[FROM: 61.135.170.*]