Chapter 19.7. The tg-admin Command

We’ve already seen the tg-admin command, but there’s a lot more that it can do than just quickstart a new project, and even the quickstart option has some features we haven’t touched upon yet. The core options of tg-admin are:

  • quickstart —Creates a new directory based on the project and package names provided; has switches to use SQLAlchemy (-s) or use alternate project templates (-t tgbig)

  • shell —Opens a new interactive shell with our model imported (When using SQLObject your database changes should autocommit)

  • i18n —Internationalization is covered in depth in Chapter 20

  • sql —Wraps around the SQLObject sql-admin command with your connection parameters pre-defined based on the information in your ...

Get Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.