December 2016
Beginner to intermediate
694 pages
14h 2m
English
Date-based generic views, provided in django.views.generic.dates, are views for displaying drilldown pages for date-based data.
A top-level index page showing the latest objects, by date. Objects with a date in the future are not included unless you set allow_future to True.
Context
In addition to the context provided by django.views.generic.list.MultipleObjectMixin (via django.views.generic.dates.BaseDateListView), the template's context will be:
date_list: A DateQuerySet object containing all years that have objects available according to queryset, represented as datetime.datetime objects, in descending orderNotes
context_object_name of latest.template_name_suffix of _archive ...Read now
Unlock full access