Creating a simple CGI Script

Xavier Combelle xavier.combelle at free.fr
Thu Aug 2 14:44:04 EDT 2012


In server.py you made a mistake in the declaration of the cgi directory
it should be
handler.cgi_directories = ["/"]


Le 02/08/2012 20:20, Smaran Harihar a écrit :
> Hi,
>
> I am trying to create a simple CGI Script and following this tutorials 
> <http://pointlessprogramming.wordpress.com/2011/02/13/python-cgi-tutorial-1/> 
> but unfortunately my output is only printing the cgi file as it is on 
> the browser.
>
> I have already provided the py scripts with the executable functions.
>
> This is my server.py <http://dpaste.de/iEPTk/> and this is 
> mytest_cgi.py <http://dpaste.de/7SsAj/>
>
> -- 
> Thanks & Regards
> Smaran Harihar
>
>
>
> This body part will be downloaded on demand.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120802/277e8644/attachment.html>


More information about the Python-list mailing list