def get(self, request): return render( request, 'carousel.html', { # evaluated lazyly, cached by template 'topics': Topics(), })
def get(self, request): return render(request, 'directory.html', { # evaluated lazyly, cached by template 'topics': Topics(), 'podcastlists': self.get_random_list(), 'random_podcast': Podcast.objects.all().random().first(), })
def get(self, request): return render( request, "carousel.html", { # evaluated lazyly, cached by template "topics": Topics() }, )
def get(self, request): return render( request, "directory.html", { # evaluated lazyly, cached by template "topics": Topics(), "podcastlists": self.get_random_list(), "random_podcast": Podcast.objects.all().random().first(), "podcast_ad": Podcast.objects.get_advertised_podcast(), }, )
def top_tags(request, count): count = parse_range(count, 1, 100, 100) tag_cloud = Topics(count, num_cat=0) resp = list(map(category_data, tag_cloud.tagcloud)) return JsonResponse(resp)