Denigma
• January 24, 2013 • ⏱️ 1 min read • 29 words
Tutorial reST #coding #django #template

Include

{% include %} enables to re-use common view code in templates. For instance, to display a list of books:

{% include "book_list.html" with books="auth.book_set.all %}

100%