33👍
You have a lot of parts commented out in your view code, specifically in the line
latest_clip_list = Clip.objects.all()#.values_list("name","id")#.order_by('-pub_date')[:5]
The error you are getting, 'Manager' object is not iterable
, would indicate that the for loop in your template is trying to iterate over the manager Clip.objects
, and not the queryset Clip.objects.all()
.
Double-check to make sure that your view actually reads
latest_clip_list = Clip.objects.all()
and doesn’t just look like
latest_clip_list = Clip.objects
Source:stackexchange.com