Python for web development in Apache

apache, mod-python, python

Solution

- Don't use mod_python. A common mistake is take mod_python as "mod_php, but for python" and that is not true. Use mod_wsgi instead.

- Choose a web framework. CherryPy. Pylons. Django.

- Look at wsgi.org

Problem

I've been playing with mod_python in apache2 which seems to work differently than python does in general - there's a bit different syntax and things you need to do. It's not very well documented and after a few days of playing with it, I'm really not seeing the point of mod_python at all, especially when things like php are so well documented and available. I can see how Python works well for system programming, but can anyone give any information as to why I shouldn't just dump python for a web-based application?

Original source