The problem here is that you use CGI,it has been dead💀 in Python for many years.
CGI is deprecated since version 3.11,and will be removed in version 3.13.
The common way to this in Python these day is to use eg Flask, FastAPI, or Django.
So WSGI is the replacement that is written all in Python.
All Framework today is written on top of WSGI(you don't use WSGI alone if not want to build new Framework).
CGI is deprecated since version 3.11,and will be removed in version 3.13.
The common way to this in Python these day is to use eg Flask, FastAPI, or Django.
So WSGI is the replacement that is written all in Python.
All Framework today is written on top of WSGI(you don't use WSGI alone if not want to build new Framework).