1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Contents</title>
<META NAME="description" CONTENT="Contents">
<META NAME="keywords" CONTENT="tut">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="STYLESHEET" href="tut.css" type='text/css'>
<link rel="first" href="tut.html">
<link rel="contents" href="contents.html" title="Contents">
<LINK REL="next" HREF="node3.html">
<LINK REL="previous" HREF="node1.html">
<LINK REL="up" HREF="tut.html">
<LINK REL="next" HREF="node3.html">
<meta name='aesop' content='information'>
</head>
<body>
<DIV CLASS="navigation">
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A HREF="node1.html"><img src="../icons/previous.gif"
border="0" height="32"
alt="Previous Page" width="32"></A></td>
<td><A HREF="tut.html"><img src="../icons/up.gif"
border="0" height="32"
alt="Up One Level" width="32"></A></td>
<td><A HREF="node3.html"><img src="../icons/next.gif"
border="0" height="32"
alt="Next Page" width="32"></A></td>
<td align="center" width="100%">CherryPy Tutorial</td>
<td><img src="../icons/blank.gif"
border="0" height="32"
alt="" width="32"></td>
<td><img src="../icons/blank.gif"
border="0" height="32"
alt="" width="32"></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" HREF="node1.html">Front Matter</A>
<b class="navlabel">Up:</b> <a class="sectref" HREF="tut.html">CherryPy Tutorial</A>
<b class="navlabel">Next:</b> <a class="sectref" HREF="node3.html">1. Downloading, installing and</A>
<br><hr>
</DIV>
<!--End of Navigation Panel-->
<BR>
<BR><H2><A NAME="SECTION002000000000000000000">
Contents</A>
</H2>
<!--Table of Contents-->
<UL CLASS="TofC">
<LI><A href="node1.html">Front Matter</a>
<LI><A href="node3.html">1. Downloading, installing and running the demo</a>
<UL>
<LI><A href="node3.html#SECTION003100000000000000000">1.1 Prerequisite</a>
<LI><A href="node3.html#SECTION003200000000000000000">1.2 Downloading and installing</a>
<LI><A href="node3.html#SECTION003300000000000000000">1.3 Running the demo</a>
<LI><A href="node3.html#SECTION003400000000000000000">1.4 Stopping the server</a>
</ul>
<LI><A href="node4.html">2. Concepts used in CherryPy</a>
<UL>
<LI><A href="node4.html#SECTION004100000000000000000">2.1 Creation of a website</a>
<LI><A href="node4.html#SECTION004200000000000000000">2.2 Handling of requests</a>
<LI><A href="node4.html#SECTION004300000000000000000">2.3 Programming a website</a>
</ul>
<LI><A href="node5.html">3. Creating a first website: Hello, world !</a>
<LI><A href="node6.html">4. Creating a first dynamic website: Hello, you !</a>
<LI><A href="node7.html">5. Templating languages: CHTL and CGTL</a>
<UL>
<LI><A href="node7.html#SECTION007100000000000000000">5.1 Tags</a>
<UL>
<LI><A href="node7.html#SECTION007110000000000000000">5.1.1 py-eval</a>
<LI><A href="node7.html#SECTION007120000000000000000">5.1.2 py-attr</a>
<LI><A href="node7.html#SECTION007130000000000000000">5.1.3 py-exec and py-code</a>
<LI><A href="node7.html#SECTION007140000000000000000">5.1.4 py-if and py-else</a>
<LI><A href="node7.html#SECTION007150000000000000000">5.1.5 py-for</a>
</ul>
<LI><A href="node7.html#SECTION007200000000000000000">5.2 Putting it together</a>
</ul>
<LI><A href="node8.html">6. Views, functions and more</a>
<UL>
<LI><A href="node8.html#SECTION008100000000000000000">6.1 Different architectures for a web site source code</a>
<UL>
<LI><A href="node8.html#SECTION008110000000000000000">6.1.1 First example: straightforward architecture</a>
<LI><A href="node8.html#SECTION008120000000000000000">6.1.2 Second example: more elegant architecture for more complex web sites</a>
</ul>
<LI><A href="node8.html#SECTION008200000000000000000">6.2 More examples on using functions, masks and views together</a>
</ul>
<LI><A href="node9.html">7. Class, instance, method and URL</a>
<LI><A href="node10.html">8. Using OOP to program a website</a>
<LI><A href="node11.html">9. Using several modules</a>
<LI><A href="node12.html">10. HTTP and cookie-based authentication</a>
<LI><A href="node13.html">11. Handling HTML forms</a>
<LI><A href="node14.html">12. Configuring CherryPy</a>
<UL>
<LI><A href="node14.html#SECTION0014100000000000000000">12.1 Changing the port</a>
<LI><A href="node14.html#SECTION0014200000000000000000">12.2 Serving static content</a>
<LI><A href="node14.html#SECTION0014300000000000000000">12.3 Changing the name fo the configuration file</a>
</ul>
<LI><A href="node15.html">13. Using your own configuration options</a>
<LI><A href="node16.html">14. Special variables and functions</a>
<UL>
<LI><A href="node16.html#SECTION0016100000000000000000">14.1 Special variables</a>
<UL>
<LI><A href="node16.html#SECTION0016110000000000000000">14.1.1 request</a>
<LI><A href="node16.html#SECTION0016120000000000000000">14.1.2 response</a>
</ul>
<LI><A href="node16.html#SECTION0016200000000000000000">14.2 Special functions</a>
<UL>
<LI><A href="node16.html#SECTION0016210000000000000000">14.2.1 initRequest, initNonStaticRequest, initResponse and initNonStaticResponse</a>
<LI><A href="node16.html#SECTION0016220000000000000000">14.2.2 onError</a>
<LI><A href="node16.html#SECTION0016230000000000000000">14.2.3 initThread, initProcess</a>
<LI><A href="node16.html#SECTION0016240000000000000000">14.2.4 initProgram, initServer, initAfterBind</a>
<LI><A href="node16.html#SECTION0016250000000000000000">14.2.5 initRequestBeforeParse (advanced usage only)</a>
</ul>
<LI><A href="node16.html#SECTION0016300000000000000000">14.3 Examples</a>
<UL>
<LI><A href="node16.html#SECTION0016310000000000000000">14.3.1 Playing with URLs</a>
<LI><A href="node16.html#SECTION0016320000000000000000">14.3.2 Sending back a redirect</a>
<LI><A href="node16.html#SECTION0016330000000000000000">14.3.3 Adding timing information to each page</a>
<LI><A href="node16.html#SECTION0016340000000000000000">14.3.4 Customizing the error message</a>
</ul>
</ul>
<LI><A href="node17.html">15. Deploying your website for production</a>
<UL>
<LI><A href="node17.html#SECTION0017100000000000000000">15.1 Choosing you deployment configuration</a>
<UL>
<LI><A href="node17.html#SECTION0017110000000000000000">15.1.1 Should I use the CherryPy HTTP server directly or behind another webserver like Apache ?</a>
<LI><A href="node17.html#SECTION0017120000000000000000">15.1.2 Options for deploying CherryPy directly</a>
<LI><A href="node17.html#SECTION0017130000000000000000">15.1.3 Options for deploying CherryPy behind another webserver</a>
</ul>
<LI><A href="node17.html#SECTION0017200000000000000000">15.2 Configuration file options</a>
</ul>
<LI><A href="node18.html">16. And now what ?</a>
<LI><A href="node19.html">17. History and License</a>
<UL>
<LI><A href="node19.html#SECTION0019100000000000000000">17.1 License</a>
</ul>
<LI><A href="node20.html">About this document ...</a>
</ul>
<!--End of Table of Contents-->
<P>
<DIV CLASS="navigation">
<p><hr>
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A HREF="node1.html"><img src="../icons/previous.gif"
border="0" height="32"
alt="Previous Page" width="32"></A></td>
<td><A HREF="tut.html"><img src="../icons/up.gif"
border="0" height="32"
alt="Up One Level" width="32"></A></td>
<td><A HREF="node3.html"><img src="../icons/next.gif"
border="0" height="32"
alt="Next Page" width="32"></A></td>
<td align="center" width="100%">CherryPy Tutorial</td>
<td><img src="../icons/blank.gif"
border="0" height="32"
alt="" width="32"></td>
<td><img src="../icons/blank.gif"
border="0" height="32"
alt="" width="32"></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" HREF="node1.html">Front Matter</A>
<b class="navlabel">Up:</b> <a class="sectref" HREF="tut.html">CherryPy Tutorial</A>
<b class="navlabel">Next:</b> <a class="sectref" HREF="node3.html">1. Downloading, installing and</A>
<hr>
<span class="release-info">Release 0.10, documentation updated on 19 March 2004.</span>
</DIV>
<!--End of Navigation Panel-->
<ADDRESS>
See <i><a href="about.html">About this document...</a></i> for information on suggesting changes.
</ADDRESS>
</BODY>
</HTML>
|