摘要: 说明 datetime 类型赋值: 数据库设置时区为:utc 系统设置时区为:'Asia/Shanghai' 1.赋值为:‘2019-04-24 15:00:00’ 数据库的结果为 ‘2019-04-24 07:00:00’ 查询获取结果为: ‘2019-04-24 07:00:00’ 时区为‘ut 阅读全文
posted @ 2019-04-24 15:11 shmily3929 阅读(1499) 评论(1) 推荐(0)
摘要: 1.char 类型设置为非空 对于字段不赋值 默认储存为''(空字符串) 2.int 类型设置为非空 对于字段不赋值 单条插入 报错 多条数据同时插入 默认设置为0 阅读全文
posted @ 2019-03-08 18:13 shmily3929 阅读(320) 评论(0) 推荐(0)
摘要: 1. 列出计划的ETA任务(worker) celery -A proj inspect scheduled 参考文档:http://docs.celeryproject.org/en/latest/userguide/monitoring.html 阅读全文
posted @ 2019-01-03 19:54 shmily3929 阅读(117) 评论(1) 推荐(0)
摘要: https://pypi.org/project/django-debug-toolbar/ https://django-debug-toolbar.readthedocs.io/en/latest/ 阅读全文
posted @ 2018-12-26 19:52 shmily3929 阅读(145) 评论(0) 推荐(0)
摘要: #原因: openssl 版本比较久 或者系统存在多个openssl 版本 # 解决问题 卸载原有的openssl 并且下载新的openssl (或者指定openssl) 阅读全文
posted @ 2018-12-12 16:36 shmily3929 阅读(871) 评论(1) 推荐(0)
摘要: /* 指定的数据库 每个表的索引 不包含主键索引的大小*/ select TABLE_NAME, concat(truncate(data_length/1024/1024,2),'mb') as data_size, concat(truncate(index_length/1024/1024,2),'mb') as index_size from information_schema.... 阅读全文
posted @ 2018-12-04 15:17 shmily3929 阅读(300) 评论(0) 推荐(0)
摘要: 错误说明:用户名权限不够 阅读全文
posted @ 2018-12-04 15:11 shmily3929 阅读(1192) 评论(0) 推荐(0)
摘要: # 解决 sudo pip3 install supervisor 阅读全文
posted @ 2018-11-27 11:28 shmily3929 阅读(549) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/ydyang1126/article/details/72902113 安装环境: 操作系统:CentOS 7 OpenSSL Version:openssl-1.0.2f.tar.gz OpenSSL地址为http://www.openssl.org/s 阅读全文
posted @ 2018-11-15 18:27 shmily3929 阅读(1395) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/heylun/article/details/78833050 阅读全文
posted @ 2018-11-15 18:22 shmily3929 阅读(123) 评论(0) 推荐(0)