I'm very new with python, so sorry for the stupid question. i'm trying to set up a http server, so I took the following code from : https://docs.python.org/2/library/simplehttpserver.html put it in a test.py file, and just ran : python test.py When I went to localhost:8000 I saw many directories.. why and why doesn't it show my print "serving at port 8000" ? thanks
import SimpleHTTPServer
import SocketServer
PORT = 8000
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
httpd = SocketServer.TCPServer(("", PORT), Handler)
print "serving at port", PORT
httpd.serve_forever()