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 = models.CharField(max_length=45)
        continut = models.TextField()
        imagine = models.CharField(max_length=150)
        data = models.DateTimeField()
        modificat = models.DateTimeField (blank = True, null = True)

I know i have to loop trough the model and on the "data" field...i've
searched all day for a solution, but didn't find anything.

I want to show the year, and the months, and only the months who have
entries to be links so i can redirect users to another view where they
can see only the posts from that month.

How can i do this?

Thank you for you're help!

p.s. sorry for my English

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to