Skip to content

Update Celery_Redis_with_Django.md #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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