Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion all/Celery_Redis_with_Django.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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')

Expand Down Expand Up @@ -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']

Expand Down