In Flask, you can use classes and decorators for routes. What would be the advantage of each use case?
I was thinking decorators for static pages and classes for more dynamic pages. If I was to combine tornado/gunicorn with flask, which is the better method.
I plan on using async methods, using this as a example as starting point: using Flask and Tornado together?
This post states it may framework dependent, but in flask we can use both.
Decorators vs. classes in python web development
These are my personal rules of the thumb.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With