(request)
return HttpResponse(content)
根据请求ip获取当前服务器ip，查询此ip有那些用户和服务器权限
    :param request:
    :return:
根据请求ip获取当前服务器ip，查询此ip有那些用户和服务器权限
    :param request:
    :return:
根据请求ip获取当前服务器ip，查询此ip有那些用户和服务器权限 : param request : : return :
def server_auth_user(request):
    """
    根据请求ip获取当前服务器ip，查询此ip有那些用户和服务器权限
    :param request:
    :return:
    """
    user = request.GET.get("user")
    user_id = CustomUser.objects.get(username=user)
    data = AuthNode.objects.filter(user_name=user_id)
    content = []
    for i in data:
        server_ip = "%s " % (i.node.eth1)
        content.append(server_ip)

    # return HttpResponse(json.dumps({"status": "200", "message": content}, ensure_ascii=False, indent=4))
    return HttpResponse(content)
def server_auth_user ( request ) : user = request . GET . get ( "user" ) user_id = CustomUser . objects . get ( username = user ) data = AuthNode . objects . filter ( user_name = user_id ) content = [ ] for i in data : server_ip = "%s " % ( i . node . eth1 ) content . append ( server_ip ) # return HttpResponse(json.dumps({"status": "200", "message": content}, ensure_ascii=False, indent=4)) return HttpResponse ( content )