I have a personal website http://robinboardman.me.uk, which I host on a Raspberry Pi 5 at home (uses apache). When I first wrote the site using PHP, I set up a guestbook which I have recently re-written in Python. This worked fine until I carried out a recent upgrade to Trixie which upgraded Python to version 3.13.
To handle the HTML form and the data via which visitors posted messages, I used the cgi module in Python and the FieldStorage method to extract and process the input data. However, the cgi module has been deprecated in Python 3.13 and hence my guestbook no longer works. I cannot find an obvious alternative in Python for the cgi.FieldStorage() method (cgi-legacy is mentioned but this seems a backward step). Does anyone have nay suggestions please?
To handle the HTML form and the data via which visitors posted messages, I used the cgi module in Python and the FieldStorage method to extract and process the input data. However, the cgi module has been deprecated in Python 3.13 and hence my guestbook no longer works. I cannot find an obvious alternative in Python for the cgi.FieldStorage() method (cgi-legacy is mentioned but this seems a backward step). Does anyone have nay suggestions please?
Statistics: Posted by Duggieb — Fri Oct 10, 2025 12:01 pm