How to print the values in extra_context in the template
def getgeneric(request, page=0, paginate_by=20, **kwargs):
page_size = 1
return list_detail.object_list(
request,
queryset=Post.objects.published(),
paginate_by=page_size,
page=page,
extra_context={'my' : 1},
**kwargs
)
Same as usual context object. In your case it will be accessible by
my