Quote:
Originally Posted by Swan
Why the browser is not able to detect the code and run it.
|
It has nothing to do with your browser. It has to do with a webserver which supports CGI capabilities with Python.
First, make sure you have a webserver which is operational. This can be verified by visiting localhost and making sure you can see any files placed in the document root.
Then, make sure you have Python installed.
The first thing your script should do is point to the location of the Python interpeter (see the code I posted in the first reply).
Finally, assert that you've configured your webserver to have CGI-support enabled for .py extentions. This process will vary depending on what webserver software you're using. It is well documented for Apache.