3 ms·
You don't have to use decorators (they cause issues with circular dependencies as well, making it difficult to break up your views module). There is an add_url_
by zeemonkee 17y ago
You don't have to use decorators (they cause issues with circular dependencies as well, making it difficult to break up your views module). There is an add_url_rule method you can use to register views.
An ORM is tangental to Flask - there is some docs on how to use with SQLAlchemy (which also suggests WTForms for validation) but it's ORM/DB neutral, which is a good idea.
However I'm warming to the idea of avoiding an ORM completely in future projects - just use a thin layer around MySQLdb or DB of choice, like tornado.database or SQLAlchemy's query API.