不同site同步大量数据

Posted on 一 17 4月 2017 in python • Tagged with shell, python

web向服务器同步数据,关键点是pipe


Continue reading

django & celery 一些笔记

Posted on 日 09 4月 2017 in python • Tagged with Celery

ubutu 12.04,整合django和celery,以及对应的upstart脚本


Continue reading

django & mysql, queyry使用datetime没有结果

Posted on 一 27 2月 2017 in python • Tagged with django

有一个django项目中需要根据日期来查询,在本地调试时没问题,可线上就查询不到结果:

now = datetime.datetime.now()
cashin = Cashin.objects.filter(update_time__month=now.month)

数据库用的是mysql,打印原始sql语句:

print Cashin.objects.filter(update_time__month=now.month)

#SELECT `cash_cashin`.`id`, `cash_cashin`.`create_time`, `cash_cashin`.`update_time`, `cash_cashin`.`status`, `cash_cashin`.`source`, `cash_cashin`.`order_id`, `cash_cashin`.`partner_order_id`, `cash_cashin`.`other`, `cash_cashin`.`desc`, `cash_cashin`.`money` FROM `cash_cashin` WHERE EXTRACT(MONTH FROM ...

Continue reading

ubuntu 12.04 安装redmine

Posted on 四 16 2月 2017 in linux • Tagged with redmine

搭建redmine笔记


Continue reading

Celery-异步任务处理

Posted on 三 15 2月 2017 in python • Tagged with Celery

用celery完成定时备份操作


Continue reading

GPG加密和MySQL备份

Posted on 日 05 2月 2017 in linux • Tagged with GPG, MySQL

记录GPG加密与MySQL备份


Continue reading

jquery dataTables 排序,筛选

Posted on 一 26 12月 2016 in front • Tagged with datatable

dataTables 使用笔记


Continue reading

在线更新django项目,遇到1050, "Table 'django_content_type' already exists"

Posted on 四 15 12月 2016 in python • Tagged with uwsgi, django

解决更新项目,遇到的问题及解决方法


Continue reading

Centos7 下部署django

Posted on 一 12 12月 2016 in python • Tagged with uwsgi, nginx, django

nginx uwsgi django 部署流程


Continue reading

Hello pelicon

Posted on 六 10 12月 2016 in Python • Tagged with pelican, python

搭建pelicon过程


Continue reading