Graham Dumpleton
grahamd at dscpl.com.au
Sat Jan 13 05:29:26 EST 2007
On 13/01/2007, at 5:56 PM, export at hope.cz wrote: > 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 Check documentation again. You have these around the wrong way: PythonInputFilter django.core.handlers.myinputfilter InputFilter SetInputFilter InputFilter > 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.
|