Creating tables with pylons and SQLAlchemy
Posted
by Sid
on Stack Overflow
See other posts from Stack Overflow
or by Sid
Published on 2009-09-27T02:19:52Z
Indexed on
2010/06/13
21:02 UTC
Read the original article
Hit count: 176
I'm using SQLAlchemy and I can create tables that I have defined in /model/__init__.py but I have defined my classes, tables and their mappings in other files found in the /model directory.
For example I have a profile class and a profile table which are defined and mapped in /model/profile.py
To create the tables I run:
paster setup-app development.ini
But my problem is that the tables that I have defined in /model/__init__.py are created properly but the table definitions found in /model/profile.py are not created. How can I execute the table definitions found in the /model/profile.py so that all my tables can be created?
Thanks for the help!
© Stack Overflow or respective owner