赞
踩
增加相应的请求处理函数:
- def getdevjson(request):
- print 'get here'
- if ('key' in request.GET):
- searchkey = request.GET.get('key')
- return JsonResponse(search(searchkey))
- else:
- return HttpResponse('Sorry!')
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。