django filter time range code example
Example 1: how to count range in django template
{% for item in "x"|ljust:"100" %}
{{item}} {# or do anything 100 times #}
{% endfor %}
Example 2: django filter by date range
Sample.objects.filter(date__range=["2011-01-01", "2011-01-31"])