摘要:
1 def get_excel_content(excel_path): 2 contents = [] 3 if self.log_path.endswith('xls'): 4 workbook = xlrd.open_workbook(excel_path, formatting_info=True) 5 ... 阅读全文
posted @ 2018-12-19 00:23
yihailin
阅读(2013)
评论(0)
推荐(0)
摘要:
默认celery的时区为UTC,如果要在django项目中将celery定时任务配置为根据本地时区触发,则需要修改 在setttings.py 添加以下任意一行: # celery 相关配置 CELERY_TIMEZONE = 'Asia/Shanghai' CELERY_ENABLE_UTC = 阅读全文
posted @ 2018-12-19 00:09
yihailin
阅读(2179)
评论(0)
推荐(0)

浙公网安备 33010602011771号