paulb@350 | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
paulb@410 | 2 | <html xmlns="http://www.w3.org/1999/xhtml"><head> |
paulb@410 | 3 | |
paulb@410 | 4 | <title>Creating Web Applications with WebStack</title><meta name="generator" content="amaya 8.1a, see http://www.w3.org/Amaya/" /> |
paulb@410 | 5 | <link href="styles.css" rel="stylesheet" type="text/css" /></head> |
paulb@327 | 6 | <body> |
paulb@327 | 7 | <h1>Creating Web Applications with WebStack</h1> |
paulb@354 | 8 | <p>This introductory guide describes the process of making a Web |
paulb@350 | 9 | application |
paulb@327 | 10 | using the WebStack framework.</p> |
paulb@327 | 11 | <h2>Setting Up</h2> |
paulb@327 | 12 | <p>First of all, let us assume that the WebStack distribution has been |
paulb@499 | 13 | unpacked and now sits in the <code>WebStack-1.1</code> directory.</p> |
paulb@350 | 14 | <p>Before we begin, we must make sure that the WebStack package is |
paulb@350 | 15 | available |
paulb@327 | 16 | to Python. The easiest way to do this is to change into the |
paulb@499 | 17 | <code>WebStack-1.1</code> directory and to run the <code>setup.py</code> |
paulb@327 | 18 | script provided with the version of Python you are going to be using |
paulb@327 | 19 | (possibly as a privileged user like <code>root</code>):</p> |
paulb@499 | 20 | <pre>cd WebStack-1.1<br />python setup.py install</pre> |
paulb@350 | 21 | <p>If you don't want to install WebStack in this way, or if you can't |
paulb@350 | 22 | do so |
paulb@350 | 23 | because you don't have <code>root</code> privileges, you can just make |
paulb@350 | 24 | sure |
paulb@499 | 25 | that the <code>WebStack-1.1</code> directory sits on your |
paulb@327 | 26 | <code>PYTHONPATH</code>.</p> |
paulb@356 | 27 | <h2>Viewing the API Documentation</h2> |
paulb@356 | 28 | <p>The API documentation for use in conjunction with this |
paulb@356 | 29 | guide can be found inside the <a href="../apidocs/index.html"><code>apidocs</code></a> |
paulb@499 | 30 | directory within the <code>WebStack-1.1</code> directory. Of course, |
paulb@356 | 31 | it is always possible to view WebStack's API documentation |
paulb@410 | 32 | within Python by importing modules (such as <a href="../apidocs/public/WebStack.Generic-module.html"><code>WebStack.Generic</code></a>) |
paulb@354 | 33 | and using Python's built-in <code>help</code> function.</p> |
paulb@327 | 34 | <h2>About WebStack Applications</h2> |
paulb@327 | 35 | <ul> |
paulb@488 | 36 | <li><a href="anatomy.html">Anatomy of a WebStack Application</a></li><li><a href="developing.html">Developing a WebStack Application</a></li></ul> |
paulb@499 | 37 | </body></html> |