CGI vs mod_python
victorsubervi at gmail.com
Wed Nov 11 14:25:01 CET 2009
On Tue, Nov 10, 2009 at 6:12 PM, John Nagle <nagle at animats.com> wrote:
> ssteinerX at gmail.com wrote:
>> On Nov 9, 2009, at 10:18 AM, Victor Subervi wrote:
>> Yes, obviously. But if CGI is enabled, it should work anyway, should it
>> Depends on what "CGI is enabled" means.
>> Usually, web servers are not set to just handle cgi scripts from anywhere,
>> but only from specific file system locations. Otherwise, an an anonymous
>> upload could be executed as CGI and wreak havoc.
> If it won't work as a CGI program, which is relatively straightforward,
> it probably won't work at all.
> First, write some trivial CGI program in Python and make sure the
> environment works - Python loads, the Python program loads, and you
> can get a response back.
> Bear in mind that most hosting services don't make much of an attempt
> to support Python. Expect important libraries to be missing or obsolete.
The problem was not CGI. It turned out to be line-endings being mangled by
Windoze and __invisible __ in my unix editor. Lovely.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list