01 2017 档案

摘要:所有的数据错做都用这个表结构 表结构 from django.db import models from django.contrib.auth.models import User # Create your models here. class Customer(models.Model): ' 阅读全文
posted @ 2017-01-09 18:03 noube 阅读(166) 评论(0) 推荐(0) 编辑
摘要:Django Paginator Django 分页官方文档 https://docs.djangoproject.com/en/1.10/topics/pagination/ 此分页方法没有限制显示出来的页码的个数,会显示全部的页码,待改进。 后端代码 由于代码是先object_list = mo 阅读全文
posted @ 2017-01-09 12:59 noube 阅读(551) 评论(0) 推荐(0) 编辑
摘要:通过 importlib模块 反射字符串的对象 Python 3.5.2 (default, Nov 17 2016, 17:05:23) [GCC 5.4.0 20160609] on linux Django 1.10.4 >>> from crm import models #使用importlib模块的import_module方法就可以实现动态的导入 >>> import im... 阅读全文
posted @ 2017-01-08 11:45 noube 阅读(223) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示