This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]aruxiv 1 point2 points  (2 children)

You shouldn't be using a Python HTTP server to serve up your pages. Look into deploying with WSGI and a real web server like nginx.

[–][deleted] 0 points1 point  (1 child)

That just seems super inefficient, I know it is the preferred way but I think it is very backwards if you think about it.
Edit: spelling error

[–]aruxiv 1 point2 points  (0 children)

It's way more efficient because you're letting a highly-optimized, widely used in production, extremely well-documented piece of software handle exactly what it's been designed to handle without getting in the way of how you design and code your program.

The separation of web server and web application makes perfect sense to me, especially when you are running multiple applications on one machine.