def get_context_data(self, *, object_list=None, **kwargs): url = get_url(country=country_india, category=Science) jsonObjects = getData(url) jsonObjects = converJsonDateToPython(jsonObjects) context = {} context['Title'] = "Science" context['Articles'] = jsonObjects return context
def get_context_data(self, *, object_list=None, **kwargs): url = get_url(language=Language_Eng) # import ipdb # ipdb.set_trace() jsonObjects = getData(url) jsonObjects = converJsonDateToPython(jsonObjects) context = {} context['Title'] = "International" context['Articles'] = jsonObjects return context