예제 #1
0
def donateData(request):
    '''
    返回捐赠信息
    捐赠笔数
    捐赠总金额
    '''
    data = [Donate.totalDonateNums(), int(Donate.totalDonateMoney())]
    return JsonResponse({'data': data})
예제 #2
0
def donateData(request):
    '''
    返回捐赠信息
    捐赠笔数
    捐赠总金额
    '''
    data = [Donate.totalDonateNums(), int(Donate.totalDonateMoney())]

    result = json.dumps(data, ensure_ascii=False)
    return HttpResponse(result, content_type='application/json')
예제 #3
0
def donateData(request):
    '''
    返回捐赠信息
    捐赠笔数
    捐赠总金额
    '''
    data = [Donate.totalDonateNums(), int(Donate.totalDonateMoney())]

    result = json.dumps(data, ensure_ascii=False)
    return HttpResponse(result, content_type='application/json')