视图说明 1. 两个基类 1)APIView rest_framework.views.APIView APIView是REST framework提供的所有视图的基类,继承自Django的View父类。 APIView与View的不同之处在于: 传入到视图方法中的是REST framework的R ...
分类:
其他好文 时间:
2020-11-25 12:30:41
阅读次数:
6
Linux虚拟环境创建及使用 linux安装 #方法2:linux pip 3 install virtual env wrapper mkdir $HOME/.virtualenvs #把所有虚拟环境指定到一个目录文件夹下存放 find/-name virtual env wrapper.sh # ...
分类:
系统相关 时间:
2020-11-25 12:20:22
阅读次数:
12
# cat check_gitlab_bak.sh #!/bin/sh source /etc/profile # 定义邮件发送列表 maillist=( zise@feizhu.com ) # 发送邮件函数 send_mail(){ for mail in ${maillist[*]}; do e ...
分类:
其他好文 时间:
2020-11-24 12:46:56
阅读次数:
8
//第一次尝试:#include<stdio.h> #include<stdlib.h> void* myMemmove(void* destin, const void* source,size_t num) { if (destin == NULL || source == NULL) { re ...
分类:
其他好文 时间:
2020-11-24 12:25:30
阅读次数:
7
一、二进制包下载:地址:https://downloads.mariadb.org/mariadb/10.2.35/选择你要安装的版本;该地址有三种数据格式的文件:Source——源码Binaries——二进制Packages——rpm包(针对centos,Redhat,Ubuntu系列的)下载二进制包:mariadb-10.2.35-linux-x86_64.tar.gz版本//linux表示在
分类:
数据库 时间:
2020-11-24 12:21:05
阅读次数:
11
资源文件在此 https://github.com/angzel/zen/blob/master/source/basic/zen-string/zen_utf8.h 只有两个函数 std::u32string UTF8ToUnicode(std::string const & utf8); std ...
分类:
编程语言 时间:
2020-11-24 12:19:12
阅读次数:
9
firewalld的富规则可以定义更复杂强大的防火墙规则语法:fiewall-cmd[--permanent]--add-rich-rule="richrule"其中富规则的结构如下:1,一般规则结构rule[source][destination]service|port|protocol|icmp-block|icmp-type|masquerade|forward-port|source-p
分类:
其他好文 时间:
2020-11-24 12:17:08
阅读次数:
9
asp.net core MVC,运行起来以后到ef的Model.Context.cs文件创建ef实例Entities时报错,发现没有在config加连接字符串,然而core没有app.config,只有appsettings.json文件,添加一个ConnectionStrings即可,如下 { ...
分类:
Web程序 时间:
2020-11-23 12:40:57
阅读次数:
23
1.nacos继承SpirngBoot做配置中心 spring配置文件里:nacos.config.server-addr=127.0.0.1:8848springboot启动类中: @NacosPropertySource(dataId = "cds-node", groupId = "com.w ...
分类:
编程语言 时间:
2020-11-23 12:12:40
阅读次数:
7
1、haproxy配置多个负载 global log 127.0.0.1 local0 log 127.0.0.1 local1 notice #daemon debug user haproxy group haproxy maxconn 4096 defaults log global mode ...
分类:
其他好文 时间:
2020-11-23 12:06:36
阅读次数:
5