Chapter 17.4. CherryPy and TurboGears Configuration

TurboGears configuration files differ from standard CherryPy configuration files, but even though they are in different places, and split up in different ways, they share the same syntax for configuring CherryPy-specific elements.

TurboGears uses ConfigObj (www.voidspace.org.uk/python/modules.shtml#configobj) to handle parsing the configuration files, and we cover ConfigObj in a bit more detail in Chapter 19, “The TurboGears Toolbox and Other Tools.” And cover some of the best ways to configure CherryPy for production use in Chapter 18. But for now, let’s take a look at where CherryPy-specific configuration information goes in a TurboGears project, and how to set things up the way you ...

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.