上一页 1 2 3 4 5 6 7 8 ··· 15 下一页
摘要: 转自:https://blog.csdn.net/qq_37598011/article/details/93489404 下载地址:https://dev.mysql.com/downloads/mysql/5.7.html#downloads 解压tar -xvf mysql-5.7.26-li 阅读全文
posted @ 2021-11-06 14:41 10132714 阅读(28) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-10-25 19:01 10132714 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 1. 参考:https://www.cnblogs.com/hunanzp/p/12304622.html 阅读全文
posted @ 2021-10-25 18:54 10132714 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 2. cmd中复制本地文件到服务器:scp 目标文件 root@106.15.73.198: 默认复制到/root/文件夹中,可在:后面加上路径来修改复制文件的位置 阅读全文
posted @ 2021-10-25 17:51 10132714 阅读(586) 评论(0) 推荐(0) 编辑
摘要: 1. 参考地址 https://www.cnblogs.com/yinhaiping/p/13375375.html 阅读全文
posted @ 2021-10-21 19:12 10132714 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 1. MySQL create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP 阅读全文
posted @ 2021-10-20 14:45 10132714 阅读(2547) 评论(0) 推荐(0) 编辑
摘要: 1. MQ = message queue 2. MQ的优势与劣势 优势 1. 应用解耦,提高系统容错性和可维护性 2. 异步提速,提升用户体验和系统吞吐量 3. 削峰填谷,提高系统稳定性劣势1. 系统可用性降低,引用的外部依赖越多,稳定性越差2. 系统复杂度提高3. 数据一致性问题没法保证 3. 阅读全文
posted @ 2021-10-17 13:48 10132714 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 1. 代码(参考:https://www.cnblogs.com/xiao-xue-di/p/11840699.html) def dict_fetchall(cursor): "Return all rows from a cursor as a dict" columns = [col[0] f 阅读全文
posted @ 2021-09-25 14:10 10132714 阅读(479) 评论(0) 推荐(0) 编辑
摘要: 1. 配置及使用 1. setting.py中配置 # log_settings # 创建一个日志文件夹LOGGING_DIR = "%s/logs" % BASE_DIR if not os.path.exists(LOGGING_DIR): os.mkdir(LOGGING_DIR) # 将日志 阅读全文
posted @ 2021-09-15 19:40 10132714 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 如果需要查询的字符串类型的列的值有单引号和\时 在单引号前面加一个单引号,在\前面加一个\select * from purchase_order where lmt_fail_reason like '%{u''information'': u''\\u521b\\u5efa\\u5931\\u8 阅读全文
posted @ 2021-09-14 15:52 10132714 阅读(2496) 评论(0) 推荐(0) 编辑
摘要: 1. 将Unicode转为中文 1. 字符串.encode('utf8') 2. 字符串.encode('raw_unicode_escape')对于字典里面的unicodea = {u'information': u'\u521b\u5efa\u5931\u8d25\uff0c\u6570\u63 阅读全文
posted @ 2021-09-14 15:49 10132714 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1. 空格处理 异常空格(160, 194)处理逻辑: 1. 获取异常列数据 2. 对异常列数据获取他的异常空格 ascii码,ord("异常字符串(空格)") 3. 处理对应异常空格ascii码, 常见异常空格 160, 194; 4. python处理异常空格: string.replace(' 阅读全文
posted @ 2021-08-30 13:39 10132714 阅读(91) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/weixin_34050519/article/details/94728954 logEntry 阅读全文
posted @ 2021-08-19 18:01 10132714 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 1. ORM查询会在需要实际数据的时候去执行sql 1. 见图 2. ORM在涉及外键时,会执行N+1次SQL 1. 当查到的记录使用:对象.外键.属性 的时候,就会执行一次sql2. django的解决方式可以是:Post.objects.all().select_related('user'), 阅读全文
posted @ 2021-08-17 20:03 10132714 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 1. 问题背景:前后端分离,后端需要将token放在响应头的Authorization中,然后前端vue去响应头里面拿这个属性,并保存在浏览器 1. 对于django后端,在将token(Authorization)放在响应头里面之后,还要在响应头设置另外一个头,前端才能拿到token(Author 阅读全文
posted @ 2021-08-14 13:45 10132714 阅读(428) 评论(0) 推荐(0) 编辑
摘要: 1. 重要部分 阅读全文
posted @ 2021-08-07 13:58 10132714 阅读(25) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-07-31 11:37 10132714 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-07-29 09:27 10132714 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 参考地址:https://www.jianshu.com/p/576dbf44b2ae,https://www.cnblogs.com/ls-2018/p/11858551.html 1. 定义 Json web token (JWT),用于认证身份 2. cookie与session cookie 阅读全文
posted @ 2021-07-26 16:01 10132714 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 1. 图片字段,有imagefield 2. 字段的默认值可以是一个函数名 3. 创建时间和更新时间的设置为auto_add_now和auto_add 4. 指定表名 class Meta: db_table = 'my_tabie_name' 5. 用户密码加密 1. 图片 6. 时区配置 1. 阅读全文
posted @ 2021-07-26 14:42 10132714 阅读(170) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 15 下一页