I'm a long-time PHP programmer and have been programming with Lua (for gaming) for the past year and Python for command-line (NumPy) based scripts for the past two years. Obviously, in comparison, the syntax in Lua and Python are a thing of beauty as are the data structures (Lua tables FTW), but I always fall back to PHP for web projects since I haven't had the chance to completely grok the Python deployment process.
Is there a simple guide to deploying Python web applications (preferably with Flask)? I know there are quite a few options (WSGI, FastCGI, mod_python), but what is the best way to do it.
I've tried to get a Python stack to build and it's huge, complicated to set up and get running well, and so slow compared to LuaJIT as to be pathetic. A friend was at PyCon surrounding by a bunch of Python hackers who spent more than an hour trying to get Django installed on his server an they failed. If the so-called experts have a hard time with it, then I don't feel so bad for finding it hard myself -- and I wouldn't recommend it to anyone.
Both Lua solutions I linked are easy and fast to install and configure (if you've got a shell, at least), and the Lua stacks are like Node.JS done right. You get coroutines so you get non-blocking code without having to code everything as an awkward callback. And of course you get the awesomeness of Lua instead of having to deal with the mess that is JavaScript.
Is there a simple guide to deploying Python web applications (preferably with Flask)? I know there are quite a few options (WSGI, FastCGI, mod_python), but what is the best way to do it.