[mod_python] Detecting if running under mod_python

David McNab david at rebirthing.co.nz
Fri Feb 13 19:52:37 EST 2004


Hi,

(thx muchly for helpful earlier replies re cookies)

Another question:

How can I tell, from *within* my python code, whether I've been launched by:

1) regular apache CGI
2) mod_python CGI, or
3) mod_python 'publisher handler', or
4) a custom mod_python handler?

Please suggest techniques that will work with mod_python 2.x

Thx in advance for your help

-- 

Kind regards
David

--

leave this line intact so your email gets through my junk mail filter



More information about the Mod_python mailing list