Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can the Pyramid framework be run on a CGI server

Ok, I get that CGI is sow outdated, and no one likes it, but I have a customer who needs a new site, is on shared hosting, and does not wish to change hosting providers. We are doing the back-end of his site in Python, and are researching Python framework options that can run as CGI(no one wants to just use the CGI module). So far, It seems Django can be run on CGI, but it is terrible. Flask and Bottle seem to run well on CGI(at least it is supported), but I was wondering if the Pyramid Framework can. If not, I guess we will just be using Flask. Can I get Pyramid running on CGI? If so what would be the performance against running Flask r Bottle under CGI?

like image 642
James Parsons Avatar asked Nov 22 '25 01:11

James Parsons


1 Answers

See this solution here, it shows how to use WSGI on CGI https://www.python.org/dev/peps/pep-0333/#the-server-gateway-side

like image 134
h4ck3rm1k3 Avatar answered Nov 24 '25 15:11

h4ck3rm1k3



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!