I'm new to programming.
I'm trying to reflect the python code in the local environment, but the python source code is reflected as it is.
$ python3 -m http.server 8000
After typing
http://localhost:8000/cgi-bin/
It is reflected when you connect to.
However
http://localhost:8000/cgi-bin/test.py
As soon as I try to migrate to, it is not reflected in html and the code of test.py is displayed as it is.
I would appreciate it if you could give me a solution. I look forward to working with you.
Recommended Posts