Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I write Python web application for Windows and Linux platforms at the same time?

Can I write web application that I can host on Windows(IIS web server) and Linux (Apache or lighttpd) without any changes?

CGI? Maybe something new? WSGI | FastCGI ?


2 Answers

Yes you can. But you can also use apache on windows. If you go the IIS way there's only CGI and it's pretty hard to set up. You can also use python based server like CherryPy which is pretty good and will work on all platforms with python.

Some frameworks like django support both CGI and WSGI, so you don't have to worry about the details of WSGI or CGI much.

If you ask me, WSGI is the future for python web apps.

like image 170
Vasil Avatar answered Jan 29 '26 11:01

Vasil


web.py includes a server... It will do the trick for small jobs.

By the way, Apache works on windows.

like image 21
fulmicoton Avatar answered Jan 29 '26 10:01

fulmicoton



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!