mod_wsgi, mod_python, or just cgi? mod_wsgi, mod_python, or just cgi? python python

mod_wsgi, mod_python, or just cgi?


mod_python is dead, so using mod_python probably isn't a good idea for new projects. Personally, I prefer to use mod_wsgi over CGI (or FastCGI). It's dead-simple to set up, and much more efficient.


  1. Don't use CGI. It's inefficient. Spawning a new process for each request. No thanks

  2. Dont't spend much time with mod_python

  3. Use mod_wsgi.

If you want to write CGI-like stuff without a framework, use mod_wsgi anyway. The WSGI standard (PEP 333) is essential for creating web applications in an easy, interchangeable, reusable, plug-and-playable way.


I would go with mod_wsgi too.

If you want a deeper understanding about the question, have a look at this:

Good stuff!