Navigation

When you create a new TurboGears project, you will get a directory structure
which at first glance seems to contains lots of files. It might seem difficult
to understand their purpose but in practice, you need to know only about a
small number of files. Those files can be categorized belonging to one of the
four purposes listed below. Note that with TurboGears you’ll spend most of time
on the files printed in bold.

Write your controllers (main program) here. If you use the quickstart
template for big applications, this is a sub-package directory named
controllers and the root controller will be in
<yourpackagename>/controllers/root.py.

<yourpackagename>/model.py

This file defines your application’s data model. If you chose to add identity
support when creating your applications, the data model to support this has
already been added to this file.

<yourpackagename>/templates/

This is a package directory containing the templates (i.e. the view) () of
your application.