Пример #1
0
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})
Пример #2
0
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})
Пример #3
0
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})
Пример #4
0
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})