[Answered ]-What is the output format of datefield to us it in strptime?

1👍

It has no format, it is simply a date object, so you filter with:

def home(request):
    context={
        'fests': Fest.objects.filter(start_date__gte=date.today()).order_by('-start_date')[:3]
    }
    return render(request,'webpage/home.html',context)

Leave a comment