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

Ticket #676 (closed enhancement: fixed)

Opened 12 years ago

Last modified 10 years ago

Create controllers package in quickstart

Reported by: kevin Owned by: anonymous
Priority: normal Milestone: 0.9a2
Component: TurboGears Version:
Severity: normal Keywords:
Cc:

Description

To make it clearer to users how to expand beyond a single controllers module, controllers will become a package. This package will contain a "root" module with the Root class in it. This class is also imported in init of that package.

Change History

comment:1 Changed 12 years ago by kevin

  • Status changed from new to closed
  • Resolution set to fixed

Nothing like changing your mind midstream. After trying it out with a controllers package, I decided that I really do like the slimmer feel of just having a controllers.py file for the still somewhat common case of a very small app.

So, there is now a new template that can be used for "big" projects where you want a controllers package. To use it, type:

tg-admin quickstart -t tgbig

If you want to upgrade an existing project to the big template:

tg-admin update -t tgbig

This change was committed in [996]. As an added bonus, I put in a "release.py" file that gives you a place to put your project's version information.

Note: See TracTickets for help on using tickets.