Hello, if i have this view: def months_archive(request, year, month): blog_posts = Post.objects.all().order_by("-post_date") ...................
how can i filter the post objects by date? I have a field post_date which is a datetime field, and i need it to return all the posts written during the specified month in the year. I had a few goes but i'm stuck. I'd appreciate any help. Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---