摘要:
models: from django.db import models # Create your models here. class Book(models.Model): name = models.CharField(max_length = 30) price = models.Deci 阅读全文
posted @ 2018-07-10 10:47
可爱的红领巾
阅读(362)
评论(0)
推荐(0)
摘要:
首先你要先导入Paginator 你要再创建分页对象 然后通过这个对象来调用分页的所有的属性 属性: 做一个分页的演示 urls: from django.contrib import admin from django.urls import path from one import views 阅读全文
posted @ 2018-07-10 10:30
可爱的红领巾
阅读(12358)
评论(0)
推荐(0)

浙公网安备 33010602011771号