def single_board(request, board): inlist = [board] outdata = postlist_crawler.get_result(inlist) outdata = outdata.items() #title = outdata[0][1][0]['title'] return render_to_response('postlists.html', {'board_posts':outdata})
def single_board(request, board): inlist = [board] outdata = postlist_crawler.get_result(inlist) outdata = outdata.items() #title = outdata[0][1][0]['title'] return render_to_response('postlists.html', {'board_posts': outdata})
def multiple_board(request): boards = request.GET.getlist('board') outdata = postlist_crawler.get_result(boards,2) outdata = outdata.items() outdata = [('pic','ture'),('girls','boys')] return render_to_response('postlists.html', {'board_posts':outdata})
def multiple_board(request): boards = request.GET.getlist('board') outdata = postlist_crawler.get_result(boards, 2) outdata = outdata.items() outdata = [('pic', 'ture'), ('girls', 'boys')] return render_to_response('postlists.html', {'board_posts': outdata})