@lebionick thanks for the info. I actually have the exact same project structure as your code. Segmentor just named differently  I had another solution for another app but I changed the solution to be exactly like yours with the before_first_request still to no success. I will report back if I find out more about this.