active-alchemy icon indicating copy to clipboard operation
active-alchemy copied to clipboard

Querying in a seperate file

Open erobert98 opened this issue 5 years ago • 0 comments

I have set up the models in a model.py page which has classes Article and Website, how can i query those in another page without importing from the model page? Is this possible? I need to write a function that is called in model.py that also queries the db and i cant seem to figure out how to do it without from model import article and running into a circular dependency

erobert98 avatar Mar 15 '19 02:03 erobert98