celery settings

This commit is contained in:
abutalib-kiwi
2023-07-19 17:48:27 +05:30
parent 3223a2b050
commit 4002d1e561
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")