コード例 #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 popular_tags(request):
    tags = ProjectCache.get_popular_tags()

    return {"popular_tags": tags}
コード例 #5
0
def best_users(request):
    users = ProjectCache.get_best_users()

    return {"best_users": users}
コード例 #6
0
 def handle(self, *args, **options):
     ProjectCache.update_popular_tags()
     self.stdout.write('Popular tags -- cached')
コード例 #7
0
ファイル: cache_users.py プロジェクト: nksoff/ask_slimov
 def handle(self, *args, **options):
     ProjectCache.update_best_users()
     self.stdout.write('Best users -- cached')
コード例 #8
0
ファイル: cache_tags.py プロジェクト: nksoff/ask_slimov
 def handle(self, *args, **options):
     ProjectCache.update_popular_tags()
     self.stdout.write('Popular tags -- cached')