Add: celery config
This commit is contained in:
parent
57c3bb99ef
commit
8031006f45
1 changed files with 18 additions and 0 deletions
|
@ -187,5 +187,23 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
|||
#############################################################
|
||||
|
||||
|
||||
#############################################################
|
||||
# Celery
|
||||
#############################################################
|
||||
CELERY_BROKER_URL = os.environ.get("CELERY_BROKER", 'redis://localhost:6379/0')
|
||||
|
||||
CELERY_TIMEZONE = TIME_ZONE
|
||||
|
||||
#CELERY_RESULT_BACKEND = "redis://localhost:6379/0"
|
||||
|
||||
CELERY_RESULT_BACKEND = 'django-db'
|
||||
CELERY_CACHE_BACKEND = 'django-cache'
|
||||
|
||||
CELERY_RESULT_EXTENDED = True
|
||||
|
||||
CELERY_BEAT_SCHEDULER = 'django_celery_beat.schedulers:DatabaseScheduler'
|
||||
#############################################################
|
||||
|
||||
|
||||
# Allow embedding in iframes from the same origin
|
||||
X_FRAME_OPTIONS = 'SAMEORIGIN'
|
||||
|
|
Loading…
Reference in a new issue