[Answered ]-Matching Month and Year In Python with datetime

1👍

you could use post_date__year and post_date__month

1👍

What you’re looking for is probably coverd by post_date__year=year and post_date__month=month in django.

Nevertheless all this seems a little bit werid for get parameters. Do you have any constraint at database level that forbids you from putting there two posts with the same title in the same month of given year?

Leave a comment