[toc] 一. 视图类 1. ApiView 是 REST framework 提供的所有视图的基类,继承自 Django 的 父类。 主要干了 局部禁用 csrf 认证 二次封装 response request 三大认证 和 exception "APIview详细源码" 2. Generic ...
分类:
其他好文 时间:
2019-12-30 23:24:10
阅读次数:
119
fs::path log_dir(fs::current_path().generic_string() +u8"\\Logs"); if (!fs::exists(log_dir) || !fs::is_directory(log_dir)) { fs::create_directory(log_ ...
分类:
编程语言 时间:
2019-12-30 23:17:57
阅读次数:
142
[TOC] 视图家族 一、views视图类 1、APIView类 功能: 1. 拥有view的所有属性和方法; 2. 重写as_view,禁用csrf; 3. 重写dispatch,分发任务,五大模块对数据进行二次封装; 4. 设定了一系列类属性。 2、GenericAPIView类(generic ...
分类:
其他好文 时间:
2019-12-30 22:54:33
阅读次数:
70
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Diagnostics;using System.Drawing;using System ...
分类:
微信 时间:
2019-12-30 19:35:55
阅读次数:
101
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Li... ...
https://docs.microsoft.com/zh-cn/dotnet/api/system.collections.generic.list-1?view=netframework-4.8 MySQLHelper /// <summary> /// 查询_返回一组数 /// </summa ...
分类:
数据库 时间:
2019-12-30 17:35:18
阅读次数:
84
打开VS,工具》NuGet包管理器》管理解决方案的NuGet程序包,搜索MySql.Data并安装 测试连接MySQL的代码: using System;using System.Collections.Generic;using System.Data;using System.Linq;usin ...
分类:
数据库 时间:
2019-12-29 20:07:48
阅读次数:
160
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 5 namespace Microestc.PaginatedList 6 { 7 public class PaginatedList<TResul ...
? Table of Contents 1. 环境 2. terminal 连接 3. 数据库操作 3.1. 注释形式 3.2. 指定字符集 3.3. 查看字符集 3.4. 查看校验规则(排序规则) 3.5. 查看数据库 3.6. 创建数据库 3.7. 显示创建数据库语句 3.8. 修改数据库 3. ...
分类:
数据库 时间:
2019-12-28 23:01:34
阅读次数:
111