1👍
You can try this:
Sample.objects.filter(
created_at__time__gte='13:00', created_at__time__lte='15:00'
)
0👍
I think it is better to divide this DateTime field to DateField and TimeField (both support auto_now parameters), so it will be easier.
- [Answered ]-Django datefield in a model form is generated in html with type=text rather than type=date
- [Answered ]-Django 404 page not showing up
- [Answered ]-Django: Create a model field referencing a ForeignKey field
- [Answered ]-Failed to add documents to Solr: [Reason: None]
Source:stackexchange.com