• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
反差萌·萌小新
博客园    首页    新随笔    联系   管理    订阅  订阅
2017年1月5日
django的分页
摘要: 一.分页器的函数封装 # 分页计算最小页和最大页 def page_list_return(total, current=1): ''' 分页,返回本次分页的最小页数和最大页数列表 :param total: :param current: :return: ''' min_page = curre 阅读全文
posted @ 2017-01-05 11:46 萌小新 阅读(993) 评论(0) 推荐(0)
adminLTE的自动化菜单
摘要: 一. model 1 from django.db import models 2 3 4 # Create your models here. 5 class MenuInfo(models.Model): 6 parent = models.ForeignKey('MenuInfo', blan 阅读全文
posted @ 2017-01-05 11:36 萌小新 阅读(11103) 评论(0) 推荐(1)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3