Merge pull request #88 from KiwiTechLLC/ZDBBCK-001

celery settings
This commit is contained in:
dilipshrivastwa-kiwi
2023-07-19 17:59:15 +05:30
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@ -1,7 +1,6 @@
"""
notifications utils file
"""
import constant as constant
# third party imports
from fcm_django.models import FCMDevice
from celery import shared_task

View File

@ -238,6 +238,13 @@ GOOGLE_CLIENT_ID = os.getenv('GOOGLE_CLIENT_ID')
# google client secret key
GOOGLE_CLIENT_SECRET = os.getenv('GOOGLE_CLIENT_SECRET')
# CELERY SETUP
CELERY_BROKER_URL = os.getenv('CELERY_BROKER_URL')
CELERY_RESULT_BACKEND = os.getenv('CELERY_RESULT_BACKEND')
CELERY_ACCEPT_CONTENT = ['application/json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
# email settings
EMAIL_BACKEND = os.getenv("MAIL_BACKEND")
EMAIL_HOST = os.getenv("MAIL_HOST")