上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: djang set_signed_cookie 理解 signed_cookie 只是加了签名的 cookie, 而不是被加密的 cookie. signed_cookie 的作用是防止用户私自纂改.参考: Securing Web Cookies With Signatures So once I 阅读全文
posted @ 2020-02-21 09:26 汪丛兴 阅读(1278) 评论(0) 推荐(0) 编辑
摘要: 实例代码如下: from OpenSSL import crypto cer_file_path = r"D:\cloudpayDjango\conf\58543195931098400.cer" pfx_file_path = r"D:\cloudpayDjango\conf\5854319593 阅读全文
posted @ 2020-02-18 11:34 汪丛兴 阅读(3767) 评论(0) 推荐(1) 编辑
摘要: def diff(listA, listB): # 求交集的两种方式 retA = [i for i in listA if i in listB] retB = list(set(listA).intersection(set(listB))) #print("retA is: ", retA) #print("retB is: ", retB) ... 阅读全文
posted @ 2020-01-21 08:29 汪丛兴 阅读(1721) 评论(0) 推荐(0) 编辑
摘要: 解决从python2.7升级到python3 RSA加解密错误 解决一下两个错误 1.em = b'\x00\x02' + ps + b'\x00' + _copy_bytes(None, None, message) 2.TypeError: Object type <class 'str'> c 阅读全文
posted @ 2020-01-14 16:39 汪丛兴 阅读(5151) 评论(2) 推荐(0) 编辑
摘要: 1.开发环境搭建 1. 安装Go 打开网址https://golang.org/dl/ 2.IDE搭建(vscode) a.打开网址:https://code.visualstudio.com b. 根据操作系统选择对应的安装包 c. 点击安装包进行安装(linux直接解压) 3.使用VS Code 阅读全文
posted @ 2019-11-12 14:55 汪丛兴 阅读(155) 评论(0) 推荐(0) 编辑
摘要: ansible入门篇 阅读全文
posted @ 2019-11-07 17:47 汪丛兴 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 微信3D签到,微信开发,年会签到,会议签到 阅读全文
posted @ 2019-11-07 17:16 汪丛兴 阅读(2716) 评论(1) 推荐(0) 编辑
摘要: python 微信开发入门篇-微信支付回调+对账单下载(三) 继续上一章节新建的项目,本节完成微信订单下载,支付回调,对账单下载模块 安装 django-simpleui,django-import-export settings.py 配置文件如下 项目完整目录结构: 数据库设计(商品表,订单表, 阅读全文
posted @ 2019-10-24 10:33 汪丛兴 阅读(2497) 评论(0) 推荐(0) 编辑
摘要: 安装并配置django-import-export 配置settings.py 建立model 生成数据库迁移 配置 admin.py 运行效果图如下: 点击导入页面如下: 实现思路如下: 通过重写导入页面,在应用目录(app)下-->templatetags-->apptags.py 配置sett 阅读全文
posted @ 2019-10-22 09:03 汪丛兴 阅读(1703) 评论(3) 推荐(1) 编辑
摘要: 在centos 7 下安装mysql 安装 配置检查指令 远程连接mysql数据库 错误信息: SQL Error (1130): Host ‘X.X.X.XX’ is not allowed to connect to this MySQL server说明所连接的用户帐号没有远程连接的权限,只能 阅读全文
posted @ 2019-10-16 09:54 汪丛兴 阅读(474) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 下一页