Chapter 18.3.1. Advantages/Drawbacks of Using mod_python

The advantages of this method are as follows:

  • Slightly faster than mod_rewrite (because requests don’t need to be forwarded)

  • No need to start/stop your CherryPy process yourself (because it starts with Apache)

The drawbacks of this method are as follows:

  • Apache starts multiple processes, so you can’t use RAM-based sessions, for instance.

  • A bit harder to configure than mod_rewrite.

  • mod_python is not yet widespread among web hosting companies. (One current problem is that Apache needs to be restarted whenever you change something in your CherryPy code.)

  • Might be less stable than mod_rewrite.

For some people who are using shared hosting, this might be your only option because your ISP will ...

Get Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.