[mod_python] Problem in Configuring

devansh mittal devanshmittal163 at yahoo.co.in
Mon Sep 12 16:25:43 EDT 2005


Hi,
     I am a newbie to mod_python. I am using Fedora
Core 4, python version 2.4.1. When i try to configure
my mod_python, it gives me error.

I added this line to my httpd.conf file :-

LoadModule python_module modules/mod_python.so

and i made a program,

from mod_python import apache
      
       def handler(req):
               req.content_type = 'text/plain'
               req.send_http_header()
               req.write('mptest.py\n')
               return apache.OK

when i run this programe by using this command,

python program_name.py

then it gives me this error.

ImportError: No module named _apache

Please help me.

Regards,

Devansh


		
__________________________________________________________ 
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com


More information about the Mod_python mailing list