1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type" /> 5 <title>Creating Applications: Create a Directory</title> 6 <meta name="generator" 7 content="amaya 8.1a, see http://www.w3.org/Amaya/" /> 8 <link href="styles.css" rel="stylesheet" type="text/css" /> 9 </head> 10 <body> 11 <h1>Creating Applications: Create a Directory</h1> 12 <p>The recommended directory structure of an XSLForms application is as 13 follows:</p> 14 <ul> 15 <li>A top-level directory corresponding to a Python package, 16 containing...<br /> 17 <ul> 18 <li>An <code>__init__.py</code> file and other source files, 19 containing the <a href="Web-resource.html">Web resources</a> and other 20 application logic.</li> 21 <li>A subdirectory containing non-code resources for the 22 application.</li> 23 <li>Other package directories, if necessary.</li> 24 </ul> 25 </li> 26 </ul> 27 <p>For example, we might create a directory structure like this:</p> 28 <ul> 29 <li>A top-level directory called <code>Configurator</code>, 30 containing...<br /> 31 <ul> 32 <li>An <code>__init__.py</code> file containing the Web 33 resources and other application logic.</li> 34 <li>A subdirectory called <code>Resources</code> containing 35 non-code resources.</li> 36 </ul> 37 </li> 38 </ul> 39 <p>In UNIX-style commands, this would be done as follows:</p> 40 <pre>mkdir Configurator<br />mkdir Configurator/Resources<br />touch Configurator/__init__.py</pre> 41 <p>It is in the <code>Resources</code> subdirectory that we will save 42 our template files when <a href="design.html">designing</a> them as 43 part of the next activity in the application development <a 44 href="overview.html">process</a>.</p> 45 </body> 46 </html>