def popular_tags(request): tags = ProjectCache.get_popular_tags() return {'popular_tags': tags}
def handle(self, *args, **options): ProjectCache.update_best_users() self.stdout.write('Best users -- cached')
def best_users(request): users = ProjectCache.get_best_users() return {'best_users': users}
def popular_tags(request): tags = ProjectCache.get_popular_tags() return {"popular_tags": tags}
def best_users(request): users = ProjectCache.get_best_users() return {"best_users": users}
def handle(self, *args, **options): ProjectCache.update_popular_tags() self.stdout.write('Popular tags -- cached')