Book Image

Learning Flask Framework

Book Image

Learning Flask Framework

Overview of this book

Table of Contents (17 chapters)
Learning Flask Framework
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


We covered a lot of information in this chapter, and by now you should be familiar with the process of creating views and templates. We learned how to render Jinja2 templates and how to pass data from the view into the template context. We also learned how to modify context data within the template, using Jinja2 tags and filters. In the second half of the chapter, we designed a URL structure for our site and translated it into Flask views. We added a simple full-text search feature to the site, and wrapped up by adding pagination links to our lists of entries and tags.

In the next chapter, we will learn how to create and edit blog entries through the website using Forms. We will learn how to process and validate user input, then save the changes to the database. We will also add a photo-uploading feature so we can embed images in our blog entries.