123456789101112 |
- from django.http import HttpResponse
- from anyjson import dumps
- def multiply(request):
- x = int(request.GET['x'])
- y = int(request.GET['y'])
- retval = x * y
- response = {'status': 'success', 'retval': retval}
- return HttpResponse(dumps(response), mimetype='application/json')
|