Flask Framework Cookbook(Second Edition)
上QQ阅读APP看书,第一时间看更新

Getting ready

By default, Flask expects templates to be placed inside a folder named templates at the application root level. If this folder is present, then Flask will automatically read the contents by making the contents of this folder available for use with the render_template() method, which we will use extensively throughout this book.