def get(self, request): args = request.GET echostr = args.get('echostr', '') if utils.verify_wx(request): return HttpResponse(echostr) else: return HttpResponse('Error Signature')
def post(self, request): LOGGER.debug("this is for test in post") if utils.verify_wx(request): ret = self.handle_msg(request) LOGGER.debug(ret) return HttpResponse(ret) else: return HttpResponse('Error Signature')