I'M working my way through a python book and I've just come to a section on python web programming. Here's what it's had me to do.
Create a folder called "public_html" in my home directory "developer", note that this is in linux system. Inside that folder create a file called file.cgi. Below is contents of that file.
file.cgi
#!/usr/bin/python3
print 'Content-type: text/plain'
print # Prints an empty line, to end the headers
print 'Hello, wolrd!'
Pull up my web browser and type http://localhost/~username/file.cgi
When I do this I web page loads indefinitely. Could someone please help me get this going? Thanks.