1👍
✅
For this task you should use the TemplateView
instead of ListView
:
from django.views.generic.base import TemplateView
class VideoListView(TemplateView):
template_name = "blogapp/video_list.html"
def get_context_data(self, **kwargs):
context = super(VideoListView, self).get_context_data(**kwargs)
context['videos'] = get_Videos()
return context
Source:stackexchange.com