Change: Include

created on Jan. 24, 2013, 1:14 p.m. by Hevok & updated on Jan. 24, 2013, 1:14 p.m. by Hevok

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

.. sourcecode:: django

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

Categories: Tutorial
Parent: Web Framework

Comment: Created entry.

See entry | Admin

Comment on This Data Unit