Previous Page Next Page

Workshop

The workshop consists of a set of questions and answers designed to solidify your understanding of the material covered in this hour. Try answering the questions before looking at the answers.

Quiz

1.Which kind of custom tag would you want to use to retrieve data from the context and then use it to build a large amount of HTML code?
2.Which kind of custom tag would you use to write a simple function to change the case of text?
3.What directory does the template system look in to find filter libraries?
4.What object must be created in a custom library module for Django to recognize it as a valid library?

Quiz Answers

1.An inclusion_tag
2.A simple_tag
3.The templatetags directory in an installed application
4.A template.Library object

Previous Page Next Page