public marks

PUBLIC MARKS with tags turbogears & sqlalchemy

11 January 2007 09:00

1.0/SQLAlchemy - TurboGears Documentation

by pvergain
Using SQLAlchemy in TurboGears The simplest way to get started using SQLAlchemy is to quickstart new project with --sqlalchemy switch: tg-admin quickstart --sqlalchemy (Or more briefly: tg-admin quickstart -s) This switch sets up your model.py properly for using SQLAlchemy. If you said yes to the identity prompt, you'll get the ActiveMapper version of the identity tables. Now change the value of sqlalchemy.dburi to point to a valid database connection. To init the database schema you need to run: tg-admin sql create If you're converting a project from SQLObject to SQLAlchemy, we recommend that you quickstart a new project and then copy in the identity tables piece by piece.

PUBLIC TAGS related to tag turbogears

frameworks +   pylons +   python +   web +   zope +  

Active users

pvergain
last mark : 11/01/2007 10:03