예제 #1
0
def detailAllBooks():
    objs = list(AmazonTradeIn.objects.values_list('productcode', flat=True))
    random.shuffle(objs)
    print 'Objs len is %d' % (len(objs),)
    print 'ok done with that'
    tasks.process_lots_of_items(objs)
예제 #2
0
def lazy(request):
    objs = Amazon_NR.objects.values_list(
        'productcode', flat=True).filter(productcode=request.GET['product'])
    tasks.process_lots_of_items(objs)
    return HttpResponse(request.GET['product'] + " : " + str(objs))
예제 #3
0
def lazy(request):
    objs = Amazon.objects.values_list('productcode', flat=True).filter(productcode=request.GET['product'])
    tasks.process_lots_of_items(objs)
    return HttpResponse(request.GET['product'] + " : " + str(objs))
예제 #4
0
def detailAllBooks():
    objs = list(AmazonTradeIn.objects.values_list('productcode', flat=True))
    random.shuffle(objs)
    print 'Objs len is %d' % (len(objs), )
    print 'ok done with that'
    tasks.process_lots_of_items(objs)
예제 #5
0
def detailAllBooks():
    objs = AmazonMongoTradeIn.objects.values_list('id', flat=True)
    print 'Objs len is %d' % (len(objs),)
    print 'ok done with that'
    tasks.process_lots_of_items(objs)