views.generic.dates.WeekArchiveView

class WeekArchiveView [source] A weekly archive page showing all objects in a given week. Objects with a date in the future are not displayed unless you set allow_future to True. Ancestors (MRO) django.views.generic.list.MultipleObjectTemplateResponseMixin django.views.generic.base.TemplateResponseMixin django.views.generic.dates.BaseWeekArchiveView django.views.generic.dates.YearMixin django.views.generic.dates.WeekMixin django.views.generic.dates.BaseDateListView django.views.generic.list.

views.generic.dates.TodayArchiveView

class TodayArchiveView [source] A day archive page showing all objects for today. This is exactly the same as django.views.generic.dates.DayArchiveView, except today’s date is used instead of the year/month/day arguments. Ancestors (MRO) django.views.generic.list.MultipleObjectTemplateResponseMixin django.views.generic.base.TemplateResponseMixin django.views.generic.dates.BaseTodayArchiveView django.views.generic.dates.BaseDayArchiveView django.views.generic.dates.YearMixin django.views.gene

views.generic.dates.MonthMixin.month_format

month_format The strftime() format to use when parsing the month. By default, this is '%b'.

views.generic.dates.MonthMixin.month

month Optional The value for the month, as a string. By default, set to None, which means the month will be determined using other means.

views.generic.dates.MonthMixin.get_previous_month()

get_previous_month(date) [source] Returns a date object containing the first day of the month before the date provided. This function can also return None or raise an Http404 exception, depending on the values of allow_empty and allow_future.

views.generic.dates.MonthMixin.get_next_month()

get_next_month(date) [source] Returns a date object containing the first day of the month after the date provided. This function can also return None or raise an Http404 exception, depending on the values of allow_empty and allow_future.

views.generic.dates.MonthMixin.get_month_format()

get_month_format() [source] Returns the strftime() format to use when parsing the month. Returns month_format by default.

views.generic.dates.MonthMixin.get_month()

get_month() [source] Returns the month for which this view will display data, as a string. Tries the following sources, in order: The value of the MonthMixin.month attribute. The value of the month argument captured in the URL pattern. The value of the month GET query argument. Raises a 404 if no valid month specification can be found.

views.generic.dates.MonthMixin

class MonthMixin [source] A mixin that can be used to retrieve and provide parsing information for a month component of a date. Methods and Attributes month_format The strftime() format to use when parsing the month. By default, this is '%b'. month Optional The value for the month, as a string. By default, set to None, which means the month will be determined using other means. get_month_format() [source] Returns the strftime() format to use when parsing the month. Returns mon

views.generic.dates.MonthArchiveView

class MonthArchiveView [source] A monthly archive page showing all objects in a given month. Objects with a date in the future are not displayed unless you set allow_future to True. Ancestors (MRO) django.views.generic.list.MultipleObjectTemplateResponseMixin django.views.generic.base.TemplateResponseMixin django.views.generic.dates.BaseMonthArchiveView django.views.generic.dates.YearMixin django.views.generic.dates.MonthMixin django.views.generic.dates.BaseDateListView django.views.generic.