I am trying to compare the current date and time with dates and times specified in models using comparison operators:
if challenge.datetime_start <= datet
datetime.datetime.now is not timezone aware.
datetime.datetime.now
Django comes with a helper for this, which requires pytz
pytz
from django.utils import timezone now = timezone.now()
You should be able to compare now to challenge.datetime_start
now
challenge.datetime_start