You ca use: Entry.objects.all().dates('pub_date','month','DESC')
lookup the dates function of the QuerySet. On May 12, 7:18 pm, Peter Sanchez <[EMAIL PROTECTED]> wrote: > I am working on my first "real" django project which includes a weblog. > > I would like to create an Archives page that lists each year and > month of that year, dynamically. > > ie, > > May, 2007 > April, 2007 > .... > November, 2006 > etc.. > > Is this possible to generate quickly from a model containing a > DateTimeField? I know I could do it myself, using lists + sort, but I > was hoping there was a quick django way to generate the data. Any ideas? > > Thanks, > > Peter --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---