- 博客(7)
- 资源 (4)
- 收藏
- 关注
原创 DjangoRest中使用filter
DjangoRest中使用filter在继承了GenericAPIView以及其子类的view中可以设置filter_backends属性来使用filter.例如:from rest_framework import filtersfilter_backends = (filters.OrderingFilter, filters.SearchFilter)filter分类1. DjangoFilterBackend (django_filters.rest_framework中)参
2020-05-25 15:24:23
497
原创 Oracle 12c创建表空间,用户以及授权
创建表空间格式: create tablespace 表间名 datafile ‘数据文件名’ size 表空间大小使用sysdba用户登录create tablespace kettle_repository datafile 'D:\oracle\oradata\ts_kettle_rep.dbf' size 1024M; 创建用户和授权2.1. 创建用户说明:Orac...
2020-05-21 16:21:40
508
原创 DjangoRest View介绍
class APIView(View)属性值类型作用是否必须permission_classestuple权限控制否方法作用check_permissions(self, request)Check if the request should be permittedcheck_object_permissions(self, request, obj)Check if the request should be permitted for
2020-05-21 15:57:34
268
原创 Docker容器gitlab版本升级
Docker容器gitlab版本升级参考文档https://docs.gitlab.com/ee/policy/maintenance.html#upgrade-recommendations11.11.8 is the last version in version 11. 12.0.x is a required step.版本升级路线11.11.3-ce.0 –> 11...
2020-04-25 11:28:11
3487
原创 Gitlab从源码安装版本迁移到docker版本
Gitlab从源码安装版本迁移到docker版本Gitlab源码版本介绍迁移前准备工作使用Docker安装Gitlab迁移数据可能遇到的问题Gitlab源码版本介绍版本:gitlab-ce:11.11.3-ce.0有LDAP登录功能创建的有runner迁移前准备工作备份旧gitlab数据备份configure文件源码安装的gitlab配置文件docker容器的gi...
2020-04-25 10:38:16
270
原创 Linux安装python-3.6.5
下载安装包[https://www.python.org/](https://www.python.org/)wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz安装解压文件tar -zxvf Python-3.6.5.tgz创建安装目录mkdir -p /usr/local/python3.6.5...
2018-12-20 18:00:31
376
原创 Linux让脚本后台运行
1.需要将运行的日志输出到指定的文件nohup command >file1 2>file2 &备注:file1脚本正确输出的日志,file2脚本运行过程出错日志2.不需要将日志输出nohup command >/dev/null 2>&1 &备注:/dev/null,或称空设备,是一个特殊的设备文件,它丢弃一切写入其中的数据(但报告写...
2018-12-12 17:30:01
1967
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人