Re: How to reflect a table

2013-01-06 Thread jason . leach
Ya, I thought that was done in __init__.py: engine = engine_from_config(settings, 'sqlalchemy.') DBSession.configure(bind=engine) Base.metadata.bind = engine I can't seem to get ahold of the 'engine' in modules.py. In the gist URL you gave me where does he get the engine from? He jus

How to reflect a table

2013-01-06 Thread jason . leach
Hi, How does one go about reflecting a table. I'd like to keep it in my models.py file if I can, and just: class PropertyParcel(Base): __tablename__ = 'property_parcel_polygons' __table_args__ = {'schema': 'property_parcel_polygons', 'autoload': True} But I end up with the exception: