It's common for a complex RESTful application to use a database to save persistent objects, as well as change the state of those persistent objects. This often leads to a multi-tier web application. One view of a design will focus on these three tiers:
- Presentation to people is handled by HTML pages, possibly including JavaScript. The HTML content often starts as templates, and a tool such as Jinja (http://jinja.pocoo.org) is used to inject data into the HTML template. In many cases, the presentation layer is a separate Flask application focused on supporting features of a rich user experience, including stateful sessions and secure authentication. This layer will make a request to the application layer via ...