I am looking to make a query that selects between dates with Django.
I know how to do this with raw SQL pretty easily, but how could this be achieved using the Djang
If you are using a DateTimeField, Filtering with dates won’t include items on the last day.
DateTimeField
You need to casts the value as date:
...filter(created_at__date__range=(start_date, end_date))