Topic: The simple http-server and performance *, py
It is necessary to test a little *.py through the browser (Chrome)
At me it is already launched simple http the server of a python thanks to what through JS I open *.pdf
All works well to the type address
files and directories are displayed.
At start http through cmd:
Scripts on the way
display empty page. Happens nothing.
On the way
the script as the text opens.
At start http through
import SimpleHTTPServer import SocketServer PORT = 8000 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler httpd = SocketServer. TCPServer (("", PORT), Handler) print "serving at port", PORT httpd.serve_forever ()
Scripts on all ways are displayed as the text.
Though here here , successful implementation is for example resulted.
How to fulfill *.py without an additional software of type of deployment Apache, etc.?