摘要:
org-docs: https://django-mysql.readthedocs.io/en/latest/model_fields/json_field.html Installation Install it with pip: $ python -m pip install django- 阅读全文
posted @ 2020-11-15 22:47
不带R的墨菲特
阅读(3901)
评论(0)
推荐(0)
摘要:
# 将官方镜像拉到本地 docker pull minio/minio # 将minio 上传到自己的私有仓库 docker tag docker-reg.xxx.com/library/minio:lastest minio/minio docker push docker-reg.xxx.com 阅读全文
posted @ 2020-11-15 14:44
不带R的墨菲特
阅读(216)
评论(0)
推荐(0)
摘要:
官方文档介绍:https://docs.djangoproject.com/en/3.1/ref/files/storage/ 源码解读: from django.core.files.storage import FileSystemStorage 如果定义模型ImageField() img=m 阅读全文
posted @ 2020-11-15 13:04
不带R的墨菲特
阅读(694)
评论(0)
推荐(0)
摘要:
### start from here ## 前置准备依赖c++ : yum -y install libevent libevent-devel perl make gcc zlib zlib-devel pcre pcre-devel gcc-c++ openssl-devel 1.安装libf 阅读全文
posted @ 2020-11-15 04:02
不带R的墨菲特
阅读(165)
评论(0)
推荐(0)
摘要:
1.启动docker 基于centos7 systemctl start/restart docker 2.查看docker 状态 ps -ef |grep dockerd 3.安装minio 1.拉取镜像 minio docker pull minio/minio 2.建立容器映射:-it 表示运 阅读全文
posted @ 2020-11-15 03:57
不带R的墨菲特
阅读(956)
评论(0)
推荐(0)
摘要:
fastdfs client库windows调用报错报错坑1: ModuleNotFoundError: No module named 'mutagen._compat'解决办法:找到utils.py文件修复导入报问题如下: from mutagen._senf._compat import St 阅读全文
posted @ 2020-11-15 02:53
不带R的墨菲特
阅读(1409)
评论(5)
推荐(0)
摘要:
注意如果你同时使用request.body和request.data时 request .body 需要在request.data 前使用,不然获取会抛异常 其次request.body用户获取非表单类型数据请求体,如果只想获取表单请求参数使用request.POST 需要获取文件使用request 阅读全文
posted @ 2020-11-15 01:00
不带R的墨菲特
阅读(189)
评论(2)
推荐(0)
摘要:
HttpRequest对象¶ 类HttpRequest¶ 属性¶ 除非另有说明,否则所有属性都应被视为只读。 HttpRequest.scheme¶ 表示请求方案的字符串(http或https 通常)。 HttpRequest.body¶ 原始HTTP请求主体为字节串。这对于以不同于常规HTML表单 阅读全文
posted @ 2020-11-15 00:46
不带R的墨菲特
阅读(502)
评论(0)
推荐(0)