Esempio n. 1
0
def showCountryData(request):
    #countryName = request.POST['country']
    countryNames = request.POST.get('countries')
    countryNames = json.loads(countryNames)
    #countryNames = ['India','China','United States','Canada','Russia','Malaysia','Singapore','Jordan','Australia','New Zealand']
    context = {'cp': qpgt.getCountryPopulationNew(countryNames)}
    return HttpResponse(json.dumps(context))
Esempio n. 2
0
def showCountryData(request):
    countryName = request.POST['country']
    context = {'cp': qpgt.getCountryPopulationNew(countryName)}
    return HttpResponse(json.dumps(context))