上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 71 下一页
摘要: package com.test.util; import com.csvreader.CsvReader; import jdk.nashorn.internal.runtime.regexp.joni.exception.ValueException; import java.util.Rand 阅读全文
posted @ 2020-11-19 10:54 不带R的墨菲特 阅读(553) 评论(2) 推荐(0)
摘要: def uuid_general(): return uuid.uuid1().hex class JsonModels(models.Model): names=models.CharField(max_length=50) attrs =JSONField(null=True) uid=mode 阅读全文
posted @ 2020-11-18 14:42 不带R的墨菲特 阅读(1462) 评论(1) 推荐(0)
摘要: AttributeError: module 'MySQLdb.constants.FIELD_TYPE' has no attribute 'JSON' while migrating in Django __init__.py # import pymysql# pymysql.version_ 阅读全文
posted @ 2020-11-18 11:29 不带R的墨菲特 阅读(1295) 评论(0) 推荐(0)
摘要: def test_json_extractor(obj:dict,expr): # the obj must be dict get_value=jsonpath.jsonpath(obj,expr) return get_value or None def test_or_return(): "" 阅读全文
posted @ 2020-11-16 23:49 不带R的墨菲特 阅读(432) 评论(0) 推荐(0)
摘要: from string import Templateimport jsonclass ReplaceTepmlate(Template): delimiter ="${}"def test_example1(): a={"a":[{"c":1,'b':'${env}'},{"c":"${ip}"} 阅读全文
posted @ 2020-11-16 22:57 不带R的墨菲特 阅读(393) 评论(0) 推荐(0)
摘要: 在 Linux 操作系统下,如何添加一个新用户到一个特定的组中?如何同时将用户添加到多个组中?又如何将一个已存在的用户移动到某个组或者给他增加一个组?对于不常用 Linux 的人来讲,记忆 Linux 那繁多的命令行操作真是件不容易的事。 在 Linux 中,增加用户或改变用户的组属性可以使用 us 阅读全文
posted @ 2020-11-16 22:24 不带R的墨菲特 阅读(624) 评论(1) 推荐(0)
摘要: 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的墨菲特 阅读(3899) 评论(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 ··· 19 20 21 22 23 24 25 26 27 ··· 71 下一页