コード例 #1
0
def backend_alive_user(request):
    user_list = []
    for node_id in Node.get_node_ids_by_show():
        user_list.extend(AliveIp.recent_alive(node_id))
    page_num = 15
    context = Page_List_View(request, user_list, page_num).get_page_context()

    return render(request, "backend/aliveuser.html", context=context)
コード例 #2
0
ファイル: views.py プロジェクト: yaungj/django-sspanel
def backend_alive_user(request):
    obj_list = []
    for node in Node.objects.all():
        obj_list.extend(AliveIp.recent_alive(node.node_id))
    page_num = 15
    context = Page_List_View(request, obj_list, page_num).get_page_context()

    return render(request, 'backend/aliveuser.html', context=context)