1. views.py def app(request): page_info = PageInfo(request.GET.get('p'), 6, 100, request.path_info, page_range=7) return render(request, 'index.html', locals()) 2. page.py class PageInfo(object): def __init__(self, current_page, per_age_num, all_coun…