Ola, amigos!
Recently, commentator
alexanderyastrebov suggested a simple way to start a simple http-server using the 1st line in the console in the Banny
Tips topic.
I decided to try to find out whether it is possible to run Python scripts on it as well, and you, reading this topic, probably already guessed what you could.
The server itself is started by one command:
python -m CGIHTTPServer
As you can see, by default it uses port 8000 and provides access to the current terminal directory. But scripts must be run from the cgi-bin folder in the current directory. For example:
localhost:8000/cgi-bin/helloworld.py
Thanks for attention!
UPD still write, as it seemed to me, the obvious thing: for web development, of course, you need a serious web server.