摘要: 新建 utils 文件夹,并创建 page.py page.py: class ShowPage(object): def __init__(self, page_num, total_count, url_prefix, per_page=10, max_page=11): ''' :param 阅读全文
posted @ 2019-08-10 22:23 Sch01aR# 阅读(582) 评论(0) 推荐(0) 编辑
摘要: 添加首页和尾页: views.py: from django.shortcuts import render from app01 import models def book_list(request): # 从 URL 中取参数 page_num = request.GET.get("page" 阅读全文
posted @ 2019-08-10 20:26 Sch01aR# 阅读(1577) 评论(0) 推荐(0) 编辑