一、引入bootstrap库
Event_manage.html文件
views文件
url文件
完成界面:
二、分页器
django提供了Paginator类实现分类功能。
D:\Python37\Scripts\guestProject>python manage.py shell
>>> from django.core.paginator import Paginator
>>> from sign.models import Guest
>>> guest_list = Guest.objects.all()
>>> p = Paginator(guest_list,2)
>>> p.count
0