Skip to content

Instantly share code, notes, and snippets.

View aarora08's full-sized avatar
🐢
.

arshit arora aarora08

🐢
.
View GitHub Profile
@hygull
hygull / LICENSE KEY FOR SUBLIME TEXT 3 BUILD 3143.md
Last active March 28, 2025 22:48
LICENSE KEY FOR SUBLIME TEXT 3 BUILD 3143

STEPS

  • Click on Help menu

  • Select Enter License

  • Then paste given KEY given at bottom

  • Finally click on Use License

@cansadadeserfeliz
cansadadeserfeliz / views.py
Last active April 13, 2020 11:00
Django: filter DatetimeField by today (max and min time)
# source: http://stackoverflow.com/questions/1317714/how-can-i-filter-a-date-of-a-datetimefield-in-django
from django.utils import timezone
today_min = datetime.datetime.combine(timezone.now().date(), datetime.time.min)
today_max = datetime.datetime.combine(timezone.now().date(), datetime.time.max)
MyModel.objects.get(date__range=(today_min, today_max))