collections is a queryset coming from urls.py: all_collections = { 'queryset': MediaCollection.objects.enriched(), }
and passed to the template like this: url(r'^collections/$', 'django.views.generic.list_detail.object_list', dict(all_collections, paginate_by=20, template_name="telemeta/collection_list.html"), name="telemeta-collections"), In the main template: {% block content %} {% with object_list as collections %} <div class="fullpage"> {% include "telemeta/inc/collection_list.html" %} </div> {% endwith %} {% endblock %} In the included template: {% load telemeta_utils %} {% load i18n %} {% if collections %} {% if hits %} ...... -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/uxQ3BaQ9LCEJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.