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?
- [Answered ]-How to add Css and Js files in Django python
- [Answered ]-Django template render into self-contained file
- [Answered ]-QuerySet working in shell but not in Views.py – Django 1.10
Source:stackexchange.com