News for hackers. Stuff that matters.
Re:Building Large Flask Apps in the Real World by m_mueller on Wednesday February 17, 2016 @10:53PM (#11123598)
I like this approach. How do you handle routes? Do you just initialize a wrapper app that is composed of your own application, wrap your views in Flask views objects and then call `add_url_rule` on them in the wrapper setup code?

If I understand this correctly, how do you define something like a redirect or abort within your own views?

Re:Building Large Flask Apps in the Real World by aidos on Thursday February 18, 2016 @05:15AM (#11124781)
I've tried to explain my structure a bit better in a reply to voltagex_.

For your specific question - all routing is done from within the top / Flask layer (as is redirecting / aborting). My App layer does not have any Flask stuff in, at all, ever.