def getUser(request, user_id): if request.method == 'GET': c = Command() result = c.getUserInfo(int(user_id)) return JSONResponse(result)