上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 48 下一页
摘要: class ModelIterable(BaseIterable): """Iterable that yields a model instance for each row.""" def __iter__(self): queryset = self.queryset db = queryse 阅读全文
posted @ 2018-11-18 17:27 十七楼的羊 阅读(250) 评论(0) 推荐(0) 编辑
摘要: class ModelBase(type): """Metaclass for all models.""" def __new__(cls, name, bases, attrs, **kwargs): super_new = super().__new__ # Also ensure initi 阅读全文
posted @ 2018-11-18 11:12 十七楼的羊 阅读(1309) 评论(0) 推荐(0) 编辑
摘要: 计算机体系结构 1, cpu 主要是软件执行的控制 2, 内存 放置代码与处理数据 3, 设备 配合程序内存: 1, cpu 之中的寄存器与 cache 最快 位于cpu内部 但是空间最小 2, 物理内存容量较大 速度较慢 归操作系统管理 存放的是运行的代码 与操作系统本身 3, 磁盘 归操作系统管 阅读全文
posted @ 2018-11-11 23:05 十七楼的羊 阅读(123) 评论(0) 推荐(0) 编辑
摘要: import logging from django.conf import settings from rest_framework.authentication import ( BaseAuthentication, get_authorization_header, ) from rest_ 阅读全文
posted @ 2018-11-10 17:59 十七楼的羊 阅读(227) 评论(0) 推荐(0) 编辑
摘要: [DEFAULT] debug = false # 指定了django 配置文件的位置!web 使用默认的配置文件! django_settings_module = antilles_web.settings # common allow_hosts = * domain = hpc.com # 阅读全文
posted @ 2018-11-08 19:53 十七楼的羊 阅读(245) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 48 下一页