Hacker News new | past | comments | ask | show | jobs | submit login

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?




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.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: