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
Do this in settings.py file :
USE_TZ=False
I was getting the same error, and it has resolved the error