I use SQLAlchemy, and I can create the tables that I defined in / model / __init__.py, but I 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 that are defined and displayed in /model/profile.py
To create the tables that I run:
paster setup-app development.ini
But my problem is that the tables that I defined in / model / __init__.py are created correctly, 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 file so that all my tables can be created?
Thanks for the help!
source
share