Creating a simple CGI Script

Smaran Harihar smaran.harihar at gmail.com
Thu Aug 2 15:19:17 EDT 2012


Thanks a lot Xavier, that was exactly what was needed.

On Thu, Aug 2, 2012 at 11:44 AM, Xavier Combelle <xavier.combelle at free.fr>wrote:

>  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 my test_cgi.py<http://dpaste.de/7SsAj/>
>
>  --
> Thanks & Regards
> Smaran Harihar
>
>
>
> This body part will be downloaded on demand.
>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>


-- 
Thanks & Regards
Smaran Harihar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120802/ba07bb81/attachment.html>


More information about the Python-list mailing list