1 2 3 4 5 6 7 8 9 10 11 | from .models import (Model1, Model2, Model3,)
# add SQLAlchemy backend
config.include('ps_alchemy')
# add pyramid_sacrud and project models
settings = config.registry.settings
settings['pyramid_sacrud.models'] = (
('Group1', [Model1, Model2]),
('Group2', [Model3])
)
|
check it there http://localhost:6543/sacrud/