keynes
keynes

Reputation: 35

Using sqlalchemy in pyramid_jqm

I know that pyramid comes with a scaffold for sqlalchemy. But what if I'm using the pyramid_jqm scaffold. How would you integrate or use sqlalchemy then? When I create a model.py and import from sqlalchemy I get an error that he couldnt find the module.

Upvotes: 0

Views: 113

Answers (1)

Michael Merickel
Michael Merickel

Reputation: 23331

You have to setup your project in the same way that the alchemy scaffold is constructed. Put "sqlalchemy" in your setup.py requires field and run "python setup.py develop" to install the dependency. This is all just python and unrelated to Pyramid.

Upvotes: 2

Related Questions