Chapter A.8. Deployment Configuration

When you create a project, you get two deployment configuration files: dev.cfg and sample-prod.cfg. If you look in these files, you’ll find sqlobject.dburi options. Change this parameter to sqlalchemy.dburi. SQLAlchemy’s database URI syntax is similar to that of SQLObject, and you will likely not have to change anything other than the name of the configuration parameter. Note that you will also need to change your production configuration file when you are deploying your code into production for the first time.

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.