Enhancing the blog app

Before continuing on to the next chapter, I recommend spending some time experimenting with the views and templates we created in this chapter. Here are a few ideas you might consider:

  • Sort the list of tags on the entry detail view (hint: use the sort filter on the tag's name attribute).
  • Remove the example code from the homepage template and add your own content.
  • You may have noticed that we are displaying all entries regardless of their status. Modify the entry_list function and the entry detail view to only display Entry objects whose status is STATUS_PUBLIC.
  • Experiment with different Bootstrap themes- http://bootswatch.com has many available for free.
  • Advanced: allow multiple tags to be specified. For example, /entries/tags/flask+python/ ...

Get Learning Flask Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.