Re: Year/month archive help

2009-10-29 Thread icrismariu
Hmm what i've done so far is: in my view: def arhiva(requesst): arch = Post.objects.dates('data', 'month', order='DESC') archives = {} for i in arch: tp = i.timetuple() year = tp[0] month = tp[1] if year not in archives:

Year/month archive help

2009-10-07 Thread icrismariu
Hello, i'm new to Django and started an application, i did the models, views, templates, but i want to add some kind of archive to the bottom of the page, something like this http://www.flickr.com/photos/ionutgabriel/3990015411/. My model looks like this: class Post(models.Model): titlu