[Tutor] Writing scripts and apps for Internet consumption

Dave Angel davea at ieee.org
Sun Aug 1 03:52:25 CEST 2010


Eric Hamiter wrote:
> On Sat, Jul 31, 2010 at 4:48 PM, bob gailer <bgailer at gmail.com> wrote:
>
>   
>>  Please post that code, and the URL you use to invoke it.
>>
>>     
>
> test.py: this works on my laptop but not on the server
>
> http://pastebin.com/ChjUzLRU
>
> test-working.py: this works on both laptop & server
>
> http://pastebin.com/iLNTrGdW
>
> both available for execution here:
>
> http://erichamiter.com/xkred27/
>
>   
>> > Do you import cgi?
>> >
>>     
> Yes.
>   
Not in this code, you don't.  You also don't need it for this case.  But 
I wonder if you're describing something different than what you're posting.

> <snip>
I can't see where you attempt to produce even the simplest of html in the

http://pastebin.com/ChjUzLRU 

code.  So why do you declare it as text/html ?

DaveA



More information about the Tutor mailing list