Skip to content
loading...

re: Flask and SQLAlchemy without the Flask-SQLAlchemy Extension VIEW POST

FULL DISCUSSION
 

Excellent introduction!
I am seeing an error message when trying to invoke Session.query() that method is not defined.

 

Hi @grubertm , my first thought is that maybe the sqlalchemy classes are not being imported properly. How did you install sqlalchemy? I did try to provide instructions in the readme file of the linked github project (the article itself only includes the code that needs to be added for sqlalchemy to work with flask - but it assumes everything else has already been done). Did you follow the readme? In that case maybe the readme has a mistake. It could also be an environment thing. I used ubuntu 18.04 with python 3.6 to set this up. If your environment is different, that could also be a possibility.

code of conduct - report abuse