CGI with Python2.7
To use it as CGI you must move your script into cgi-bin or similar directory of HTTP server. Then point your browser into http://127.0.0.1/cgi-bin/my_scipt.py and see results. In case of problems see at HTTP server error log.
In case of strange errors show us what HTTP server and OS you use, example "Apache 2.2 on WinXP".
Am using python2.7. My task is to create a web page say login screen in browser using python. I tried CGI. My code is showing HTML file(all the html code from  to ) in CMD screen. Whereas i want them in browser as web page. Any help?.