Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 4 and Version 5 of QuickStart


Ignore:
Timestamp:
07/29/06 17:38:18 (13 years ago)
Author:
Kaan
Comment:

Better to have this in straight html

Legend:

Unmodified
Added
Removed
Modified
  • QuickStart

    v4 v5  
    1 Title Bar 
    2 ---- 
     1{{{ 
     2#!html 
     3    <div id="header">&nbsp;</div> 
     4    <div id="main_content"> 
     5      <div class="notice status_ok"> 
     6          Your TurboGears application is now running. 
     7      </div> 
     8      <div id="sidebar"> 
     9        <h2>Learn more</h2> 
     10        Learn more about TurboGears and take part in its 
     11        development 
     12        <ul class="links"> 
    313 
    4 A Notice Field 
    5 {{{ 
    6 Your TurboGears application is up and running 
    7 since Sun Jun 25 11:34:10 2006. 
     14          <li><a href="http://www.turbogears.org">Official website</a></li> 
     15          <li><a href="http://docs.turbogears.org">Documentation</a></li> 
     16          <li><a href="http://trac.turbogears.org/turbogears/">Trac 
     17              (bugs/suggestions)</a></li> 
     18          <li><a href="http://groups.google.com/group/turbogears"> 
     19              Mailing list</a> 
     20          </li> 
     21        </ul> 
     22 
     23      </div> 
     24      <h1>Are you ready to gear up?</h1> 
     25      <p> 
     26        Your journey into the land of easy web application 
     27        creation has started. You can use TurboGears to create 
     28        all kind of web content, especially  
     29        <abbr title="Asynchronous JavaScript and XML">AJAX</abbr> 
     30        powered applications, providing real-time interactive content 
     31        to your users. 
     32      </p> 
     33      <div id="getting_started"> 
     34        <h2>Getting started</h2> 
     35 
     36        <p>To get started with developing your new TurboGears 
     37          application, you need to do following:</p> 
     38        <ol id="getting_started_steps"> 
     39          <li class="getting_started"> 
     40            <h3>Design your model</h3> 
     41            <p> 
     42              Start developing immediately with the pre-configured SQLite 
     43              database, if you have SQLite installed, or edit  
     44              <span class="code">dev.cfg</span> to use 
     45              a different database.<br /> 
     46 
     47              Note that TurboGears support several 
     48              different database backends, including mySQL, PostgreSQL 
     49              and SQLite, but you need to have the backend installed. 
     50              </p> 
     51            <ul class="links"> 
     52              <li><a href="#">Learn more about designing models</a></li> 
     53              <li><a href="#">Learn more about database backends</a></li> 
     54            </ul> 
     55          </li> 
     56          <li class="getting_started"> 
     57 
     58            <h3>Build your controllers</h3> 
     59            <p> 
     60              Edit <span class="code"> 
     61              <em>project-path/</em>controllers.py</span> and build your 
     62              website structure with Python objects. 
     63            </p> 
     64            <p> 
     65              <ul class="links"> 
     66 
     67                <li><a href="#">Learn more about controllers</a></li> 
     68              </ul> 
     69            </p> 
     70          </li> 
     71          <li class="getting_started"> 
     72            <h3>Create your views</h3> 
     73            <p> 
     74              While the model defines your data, and the controllers 
     75              process them, the view displays it. You can find your 
     76              templates in the <span class="code"><em>project-path/</em> 
     77 
     78              templates</span> folder. 
     79            </p> 
     80            <p> 
     81              You will probably also need to provide static content. 
     82              Javascript, <abbr title="Cascading Style Sheets">CSS</abbr> 
     83              and images should be located in the <span class="code"> 
     84                <em>project-path/</em>static</span> folder. 
     85            </p> 
     86 
     87            <ul class="links"> 
     88              <li><a href="#">Learn more about views</a></li> 
     89              <li><a href="#">Learn more about defining static content</a></li> 
     90            </ul> 
     91               
     92          </li> 
     93          <li class="getting_started"> 
     94            <h3>And more&hellip;</h3> 
     95 
     96            <p> 
     97              There are many other cool things you can do with 
     98              TurboGears &ndash;  
     99               
     100              <abbr title="Asynchronous JavaScript and XML">AJAX</abbr>, 
     101              Widgets, the Identity framework and unit tests. 
     102              You can run <span class="code">tg-admin toolbox</span> 
     103              to try our interactive TurboGears toolbox with model 
     104              designer, <abbr title="Internationalisation">i18n</abbr> 
     105              administration and other goodies. 
     106            </p> 
     107            <p> 
     108 
     109            Please check out our  
     110            <a href="docs.turbogears.org">documentation</a> if you want 
     111            to learn more&hellip; 
     112            <p> 
     113               
     114        </ol> 
     115         
     116        <div class="notice"> 
     117          Note that TurboGears will automatically reload itself when you 
     118          modify your project, so all you need to do after saving your 
     119          files is reloading the page in your browser. 
     120        </div> 
     121           
     122      </div><!-- End of getting_started --> 
     123 
     124    </div><!-- End of main_content --> 
     125    <div id="footer"> 
     126      <img src="under_the_hood_blue.png" /> 
     127      <p>TurboGears is a open source front-to-back web development 
     128        framework written in Python</p> 
     129      <p>Copyright &copy; 2006 Kevin Dangoor</p> 
     130    </div> 
    8131}}} 
    9  
    10 == Learn more == 
    11 Learn more about TurboGears and take part in its development 
    12  
    13     * [http://www.turbogears.org/ Official website] 
    14     * [http://docs.turbogears.org/ Documentation] 
    15     * [http://trac.turbogears.org/turbogears/ Wiki & Suggestions] 
    16     * [http://groups.google.com/group/turbogears Mailing list] 
    17  
    18 = Are you ready to gear up? = 
    19 Your journey into the land of rapid web application development has started.  
    20 Take the following steps to dive right in: 
    21  
    22 == Getting started == 
    23  
    24 1. Create your model 
    25  
    26     Start development immediately with the [# pre-configured SQLite database], 
    27  
    28     or edit the dev.cfg file to use a different database.  
    29  
    30     Create your model in [http://docs.turbogears.org/0.9/gt_defining_model model.py] or use [http://docs.turbogears.org/0.9/toolbox Toolbox] for a nice GUI. 
    31  
    32 {{{ 
    33 if you are not sure, install pysqlite module by $ easy_install pysqlite 
    34 }}} 
    35  
    36 2. Build your controllers 
    37     Edit "project-path/controllers.py" and [http://docs.turbogears.org/0.9/gt_cpexposed build your website structure] with Python objects. 
    38  
    39 3. Design your view 
    40     [# Edit your templates] in the "project-path/templates" folder. 
    41  
    42     Place Static content (css, javascript and images) in the "project-path/static" 
    43 directory. 
    44  
    45 {{{ 
    46     Change the master.kid template to have the headers and footers for your application. 
    47     Change welcome.kid (this template) or create a new one to display your data 
    48 }}} 
    49  
    50 4. And more... 
    51     There are many cool things you can do to take your application to the next level. 
    52     such as easy AJAX with [http://docs.turbogears.org/0.9/gt_mochikit Mochikit] and [http://docs.turbogears.org/0.9/gt_json JSON], or take advantage of [http://docs.turbogears.org/0.9/widgets widgets], [http://docs.turbogears.org/0.9/identity identity], [http://docs.turbogears.org/0.9/scheduler scheduler], [http://docs.turbogears.org/0.9/index testing] and more. 
    53  
    54 = Good luck making your killer app! = 
    55  
    56 If you create something cool, consider [http://groups.google.com/group/turbogears contributing back to the community]. 
    57  
    58 TurboGears is an open source project whose vitality comes from users and developers like you.  
    59  
    60  
    61 ---- 
    62 foot icon 
    63  
    64 TurboGears is a open source front-to-back web development framework written in Python 
    65  
    66 Copyright © 2006 Kevin Dangoor