[Tutor] PyApache Module questions
kromag@nsacom.net
kromag@nsacom.net
Wed, 28 Mar 2001 08:21:51 -0800 (PST)
I compiled the PyApache module into apache 1.3.19. Everything seems to work
fine except for a small weirdness.
It seems that one must add a couple of "print"s to the beginning of one's cgi
script for the module to write out to the browser.
ie
#!/usr/bin/python
import os, <among others>
print
print
print "Hi there, handsome..."
works fine but
#!/usr/bin/python
import os
print "Hi there, handsome..."
produces a blank page.
I noticed that the demo script that comes with this module had two leading
print statements, which clued me in a little. Is this a known idiosyncracy?
Are there any other caveats associated with PyApache?
Thanks!