Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites

A.9. Application Configuration

If your project does not use identity, you don't need to make any changes in your application configuration.

Your main application configuration is stored in yourproject/yourpackage/config/app.cfg. This file contains your application's identity configuration. Turbo-Gears includes identity providers for both SQLObject and SQLAlchemy. There are three changes to be made in this file:

  1. Replace all occurrences of "soprovider" with "saprovider".

  2. Set visit.manager="sqlalchemy"

  3. Set identity.provider="sqlalchemy"

Категории