Three day old installation of
Python 3.11
Django version 4.2.4, using settings ‘storefront.settings’
I’m following along with Mosh coding as he is coding.
queryset = Customer.objects.annotate(is_new = True) - fails as advertised.
Add this:
from django.db.models import Value
change the queryset to this
queryset = Customer.objects.annotate(is_new=Value(True)) - gives a blank screen and NO SQL
Selecting SQL in the Django debug toolbar shows
SQL queries from 0 connections
No SQL queries were recorded during this request.
I’ve looked at this for so long I am going word blind.
Can anyone see what I have done wrong or mis-typed? Or is there a reason for this