News for hackers. Stuff that matters.
Re:Gunicorn by yazmeya on Tuesday January 11, 2022 @01:29PM (#29895560)
In fact, you don't. Your WSGI app is not a web server. It does not run or network by itself and doesn't speak HTTP. You need a compatible web server (e.g. Gunicorn) to do that for you. It's really not that much different from good old CGI. It's simple and flexible enough for a large number of use cases. Of course, that's not the only way to write web apps in Python. Using a library like Pyramid et al, you launch the HTTP endpoint manually from the main program, and attach various handlers/whatnot to it. All "self-contained".
Re:Gunicorn by mcdermott on Tuesday January 11, 2022 @01:34PM (#29895629)
I love Python for slicing and dicing data, automating tasks and building tools, but for a web server or web application it's a mess and is a bad choice.
Re:Gunicorn by codethief on Tuesday January 11, 2022 @02:08PM (#29896183)
What do you base this judgment on? I've built several web applications using Python and things worked very well and were far from being a mess.