[mod_python] Several handlers

export at hope.cz export at hope.cz
Sat Jan 13 01:56:15 EST 2007


Graham ,
Thank you for your reply.
So now my httpd.conf looks like this:
...
...
 SetHandler python-program
 PythonHandler django.core.handlers.modpython

 PythonInputFilter InputFilter django.core.handlers.myinputfilter
 SetInputFilter django.core.handlers.myinputfilter
...
..
and I have the filter in a file myinputfilter.py
in a directory C:\Python23\Lib\site-packages\django\core\handlers.

but when I try to run , I received the error
###################
Mod_python error: "PythonInputFilter django.core.handlers.modpython" 

Traceback (most recent call last): File "C:\PYTHON23\Lib\site-
packages\mod_python\apache.py", line 299, in HandlerDispatch result = object(req) 

File "C:\PYTHON23\lib\site-packages\django\core\handlers\modpython.py", line 
165, in handler return ModPythonHandler()(req) 
File "C:\PYTHON23\lib\site-packages\django\core\handlers\modpython.py", line 
139, in __call__ response = self.get_response(req.uri, request) 
....
...
##############
Why Mod_python calls  django.core.handlers.modpython  , expecting PythonInputFilter 
should be there?
So, it seems to me that myinputfilter has not been called at all .
Can you please help?
Thank you
La.



More information about the Mod_python mailing list