Chapter 3. Extending Your Blog Application

The previous chapter went through the basics of forms, and you learned how to integrate third-party applications into your project. This chapter will cover the following points:

  • Creating custom template tags and filters
  • Adding a sitemap and a post feed
  • Building a search engine with Solr and Haystack

Creating custom template tags and filters

Django offers a variety of built-in template tags such as {% if %} or {% block %}. You have used several in your templates. You can find a complete reference of built-in template tags and filters at https://docs.djangoproject.com/en/1.8/ref/templates/builtins/.

However, Django also allows you to create your own template tags to perform custom actions. Custom template tags ...

Get Django By Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.