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'sname
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 entrydetail
view to only displayEntry
objects whose status isSTATUS_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/
would only display entries that are tagged with both flask and python.