[mod_python] Re: ImportError: No module named index

StianSøiland stian at soiland.no
Mon Jan 19 21:06:25 EST 2004

On 2004-01-18 15:38:00, Saiello at Jentoo.com wrote:

> python/new.py
> from mod_python import apache
> def handler(req):
> 	req.content_type = "text/plain"
> 	req.write("hello world!")
> 	return apache.OK

Btw, naming your module new.py might not be very smart, as new is an
internal python module. (Used to create new module objects, etc.)

Stian Søiland               Work toward win-win situation. Win-lose
Trondheim, Norway           is where you win and the other lose.
http://www.soiland.no/      Lose-lose and lose-win are left as an
                            exercise to the reader.  [Limoncelli/Hogan]

More information about the Mod_python mailing list