TurboGears quickstart (i.e. 'tg-admin quickstart') now uses PasteScript, and therefore supports user templates.
Why would you want to do this? Well, if you have your own conventions for applications, this is a way to add those to new TurboGears projects -- documentation templates, testing frameworks, whatever.
Also, if you already have a project started, you can run quickstart on it again (perhaps with your new template!) and see how the current project differs, and maybe apply some of the changes.
So let's go ahead and create our own template! Let's say that you have a default.css file that you always include in your webapp. Let's start by creating some files and directories. We will be creating a new package for use in other projects.
mytemplate/ mytemplate/setup.py mytemplate/mytemplate/__init__.py mytemplate/mytemplate/template/+package+/static/css/default.css
First we will edit the setup.py
This setup basically tells pastescript that there is a template called mytemplate and its class is MyTemplate? in the mytemplate module.
Now let's edit __init__.py
Next, we need to deploy our mytemplate package. In the /mytemplate directory, you can run 'python setup.py develop' (allowing you to keep developing in mytemplate without having to rerun setup.py) or 'python setup.py install' for final deployment. (Note: you may need to use sudo as appropriate).
Now you can run: tg-admin quickstart -t mytemplate and there should be a default.css file in your static/css/ dir!
You can add documentation templates, testing frameworks, etc. to the template dir and have them included in your new projects. If you are interested, the PythonPaste site has more detail about templates.