CherryPy HowTo
Next:
Contents
CherryPy HowTo
Remi Delon
Email:
remi@cherrypy.org
Release 0.9-rc1
19 November 2003
Contents
1. How to serve gzip-compressed pages with CherryPy
2. How to run a CherryPy server behind Apache
2.1 Introduction
2.2 Using persistent CGI
2.2.1 Example
2.3 Using FastCGI
2.3.1 Example
2.4 Using mod_rewrite
2.4.1 Example
3. How to connect a CherryPy server to a database
4. How to use load-balancing for your web site
4.1 Introduction
4.2 Generic load-balancing method
4.3 Multi-processor, unix-based machine
5. How to compile your code in debug mode
6. How to use the hotReload feature of CherryPy
6.1 Introduction
6.2 How does it work ?
6.3 How to use it ?
7. How to use caching
7.1 Introduction to caching
7.2 Caching with CherryPy
7.2.1 Where are pages stored ?
7.2.2 How does it know if a page is already in the cache ?
7.2.3 How do I control which pages I want to cache or not ?
7.2.4 How do I control when the cache is purged ?
8. How can webdesigners and webdevelopers collaborate on a CherryPy project
8.1 Introduction
8.2 How can they collaborate ?
8.3 Example
9. How to use SSL with CherryPy
9.1 Introduction
9.2 Prerequisite
9.3 Configuring the CherryPy server
10. How to use XML/XSL with CherryPy
10.1 Introduction
10.2 Prerequisite
10.3 Using the XML/XSL package from CherryPy
11. How to use AOP (Aspect Oriented Programing) with CherryPy
11.1 Introduction
11.2 Basic example
11.3 How is it used in CookieAuthenticate and HttpAuthenticate
12. How to create a spinning server and then debug it
12.1 Creating a spinning server
12.2 Debugging a spinning server
13. How to create an XML-RPC server with CherryPy
13.1 Basic Example
13.2 Multiple Servers
14. How to make hidden masks or views
14.1 Introduction
14.2 How it works
15. How to control logs
16. How to use sessions
16.1 Introduction to sessions
16.2 Possible implementations for sessions
16.3 Sessions implementation in CherryPy
16.4 Configuration variables used to control sessions
16.5 Using sessions in your code
16.6 Example
16.7 Storing session data in a database (or anywhere else)
17. How to use Psyco with CherryPy
18. How to use cookies with CherryPy
18.1 Setting cookies
18.2 Reading cookies
19. How to use Cheetah templates with CherryPy
20. How to use streaming with CherryPy
21. Sample deployment configuration for a real-world website
21.1 Hardware
21.2 Software environment
21.3 CherryPy version
21.4 CherryPy server configuration
21.5 CherryPy server deployment
21.6 Database configuration
21.7 Sessions
21.8 Results
About this document ...
CherryPy HowTo
Next:
Contents
Release 0.9-rc1, documentation updated on 19 November 2003.
See
About this document...
for information on suggesting changes.