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))
def showCountryData(request): countryName = request.POST['country'] context = {'cp': qpgt.getCountryPopulationNew(countryName)} return HttpResponse(json.dumps(context))