I would like to implement a web page in Python using ONLY the std library. I have done it in PHP but I want to do it in Python and it is very difficult to me to understand the documentation. This is what I done in PHP: Access http://localhost:8888/project/src/car.php. The user has to complete a form where it specifies the
Tag: simplehttpserver
How to run a http server which serves a specific path?
this is my Python3 project hiearchy: From script.py, I would like to run a http server which serve the content of the web folder. Here is suggested this code to run a simple http server: but this actually serve project, not web. How can I specify the path of the folder I want to serve? Answer In Python 3.7 SimpleHTTPRequestHandler