Cant register Flask context to sqlalchemy instance #1190
Unanswered
CypherpunkSamurai
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Running queries at import time is a terrible idea. Did you forget to wrap your stuff in |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello 👋🏼,
I'm working on a flask postgresql project that uses flask_sqlalchemy. When I run the flask app and the controller route get a get request it gives error, though I have init the db when creating the flask app.
Sources Here: https://github.com/CypherpunkSamurai/flask-restapi/blob/master/app/run.py
I have the following file structure:
run.py
has the following factory.models.py
has:Beta Was this translation helpful? Give feedback.
All reactions