摘要: # 退款 code = json_data.get('code', None)kind = json_data.get('kind', None)print(1111111111111111112222222222222222)if code is None: return HttpResponse 阅读全文
posted @ 2020-07-28 17:42 关美丽 阅读(186) 评论(0) 推荐(0) 编辑
摘要: health = sorted(healths, key=lambda k: k['sort'])# healths列表名,sort是字段名 阅读全文
posted @ 2020-07-28 17:30 关美丽 阅读(3679) 评论(0) 推荐(1) 编辑
摘要: 安装 pip install apscheduler==2.1.2 建议安装这个版本的,这个亲测支持django2.0,最高版本的没试过 使用在任意一个app内的views.py中写好定时任务 from apscheduler.scheduler import Schedulerfrom time 阅读全文
posted @ 2020-06-18 17:31 关美丽 阅读(569) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-05-29 17:52 关美丽 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-05-21 16:02 关美丽 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-05-21 15:45 关美丽 阅读(0) 评论(0) 推荐(0) 编辑
摘要: linux常用命令和关闭防火墙 2. linux常用命令 Mkdir 创建 Rm -rf 删除 Chmod -R 777 权限 Mysql -uroot -r quit退出 find / -name svn 查找位置 3. 关闭防火墙和selinux Redhat使用了SELinux来增强安全,关闭 阅读全文
posted @ 2020-05-21 11:28 关美丽 阅读(103) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-05-12 16:22 关美丽 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 1.在setting中的installed_apps添加'django_crontab', 2.在setting中添加CRONJOBS; crontab 文件中每个条目中各个域的意义和格式: 第一列 分钟: 1——59 第二列 小时: 1——23(0表示子夜) 第三列 日 : 1——31 第四列 月 阅读全文
posted @ 2020-04-26 17:13 关美丽 阅读(657) 评论(0) 推荐(0) 编辑
摘要: 启动uwsgi服务,进入项目根目录中执行指令:uwsgi --ini uwsgi.ini (可以经uwsgi.log添加到项目中) 重启:uwsgi --reload uwsgi.pid 停止uwsgi服务器,进入服务器根目录执行指令:uwsgi --stop uwsgi.pid 查看是否已经运行u 阅读全文
posted @ 2020-04-26 15:38 关美丽 阅读(324) 评论(0) 推荐(0) 编辑