django filter from date and time today now range code example
Example: django filter by date range
Sample.objects.filter(date__range=["2011-01-01", "2011-01-31"])
Sample.objects.filter(date__range=["2011-01-01", "2011-01-31"])