From 30f30c58deea2fafa9eecf6d0ffe1f897c119b98 Mon Sep 17 00:00:00 2001 From: FahadAlbukhari Date: Sun, 27 May 2018 04:40:50 -0500 Subject: [PATCH] Update Celery_Redis_with_Django.md --- all/Celery_Redis_with_Django.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/all/Celery_Redis_with_Django.md b/all/Celery_Redis_with_Django.md index 45db48d..3a59bca 100644 --- a/all/Celery_Redis_with_Django.md +++ b/all/Celery_Redis_with_Django.md @@ -87,6 +87,8 @@ All three work together to make real-time magic. 'django_celery_beat', 'django_celery_results', ] + + TIME_ZONE = 'UTC' CELERY_BROKER_URL = 'redis://localhost:6379' @@ -106,7 +108,7 @@ All three work together to make real-time magic. # set the default Django settings module for the 'celery' program. - os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'red.settings') + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proj.settings') app = Celery('proj') @@ -251,6 +253,9 @@ FYI - To run a `beat` server like above, you will need a paid account. 'django_celery_results', ## your apps ] + + TIME_ZONE = 'UTC' + CELERY_BROKER_URL=os.environ['REDIS_URL'] CELERY_RESULT_BACKEND=os.environ['REDIS_URL']