CherryPy Tutorial
Previous:
Front Matter
Up:
CherryPy Tutorial
Next:
1. Downloading, installing and
Contents
Front Matter
1. Downloading, installing and running the demo
1.1 Prerequisite
1.2 Downloading and installing
1.3 Running the demo
1.4 Stopping the server
2. Concepts used in CherryPy
2.1 Creation of a website
2.2 Handling of requests
2.3 Programming a website
3. Creating a first website: Hello, world !
4. Creating a first dynamic website: Hello, you !
5. Templating languages: CHTL and CGTL
5.1 Tags
5.1.1 py-eval
5.1.2 py-attr
5.1.3 py-exec and py-code
5.1.4 py-if and py-else
5.1.5 py-for
5.2 Putting it together
6. Views, functions and more
6.1 Different architectures for a web site source code
6.1.1 First example: straightforward architecture
6.1.2 Second example: more elegant architecture for more complex web sites
6.2 More examples on using functions, masks and views together
7. Class, instance, method and URL
8. Using OOP to program a website
9. Using several modules
10. HTTP and cookie-based authentication
11. Handling HTML forms
12. Configuring CherryPy
12.1 Changing the port
12.2 Serving static content
12.3 Changing the name fo the configuration file
13. Using your own configuration options
14. Special variables and functions
14.1 Special variables
14.1.1 request
14.1.2 response
14.2 Special functions
14.2.1 initRequest, initNonStaticRequest, initResponse and initNonStaticResponse
14.2.2 onError
14.2.3 initThread, initProcess
14.2.4 initProgram, initServer, initAfterBind
14.2.5 initRequestBeforeParse (advanced usage only)
14.3 Examples
14.3.1 Playing with URLs
14.3.2 Sending back a redirect
14.3.3 Adding timing information to each page
14.3.4 Customizing the error message
15. Deploying your website for production
15.1 Choosing you deployment configuration
15.1.1 Should I use the CherryPy HTTP server directly or behind another webserver like Apache ?
15.1.2 Options for deploying CherryPy directly
15.1.3 Options for deploying CherryPy behind another webserver
15.2 Configuration file options
16. And now what ?
17. History and License
17.1 License
About this document ...
CherryPy Tutorial
Previous:
Front Matter
Up:
CherryPy Tutorial
Next:
1. Downloading, installing and
Release 0.10, documentation updated on 19 March 2004.
See
About this document...
for information on suggesting changes.