Пример #1
0
def popular_tags(request):
    tags = ProjectCache.get_popular_tags()

    return {"popular_tags": tags}
Пример #2
0
 def handle(self, *args, **options):
     ProjectCache.update_best_users()
     self.stdout.write('Best users -- cached')
Пример #3
0
def best_users(request):
    users = ProjectCache.get_best_users()

    return {"best_users": users}
Пример #4
0
 def handle(self, *args, **options):
     ProjectCache.update_popular_tags()
     self.stdout.write('Popular tags -- cached')