3 ms·
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 ob
by m_mueller 11y ago
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?
- aidos 11y agoI'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.