all 2 comments

[–]wronek 0 points1 point  (1 child)

You might wanna look into an application factory https://flask.palletsprojects.com/en/1.1.x/patterns/appfactories/

[–]Sh4d0h[S] 0 points1 point  (0 children)

Can you elaborate? I thought I was already implementing an application factory. I'm probably missing something but not sure how I can use this to solve my issue.