Exemple #1
0
def register(request):
    resp = {'result': "", 'code': 0, 'message': ""}
    print('received an http request: user register!')
    print('request.body == %s' %request.body)

    args = simplejson.loads(request.body)
    usrMgr = UserManager()
    usrMgr.register(args, resp)

    respstr = simplejson.dumps(resp)
    print(respstr)
    return HttpResponse(respstr)