Need Help With View Query Comparing Dates

Only way I know of to diagnose something like this is to start from the beginning and cover everything involved - directly involved and indirectly involved.
Would need to see your settings.py, urls.py, what command you’re using to run the server, the output from the runserver console when running it, the full template file being rendered, any template files being extended or included, etc, etc. Complete files and not snippets.