Working on setting up some generic views this evening, I ran into a problem that I'd run up against before. For some reason, I can't understand the very good documentation and always run up against the problem of referencing the queryset in the template.
The queryset is passed as 'queryset' in urls.py, but in the template it is not referenced as queryset, but some other name depending on the generic view.In this evening's case, I was using the 'django.views.generic.date_based.archive_index' view, and couldn't figure out the name by which to reference my objects?!? After trying object_list, object, queryset, and any other name I could think of, I added the debug toolbar to the project at it kindly showed be the variable ('latest' in this case)