diff --git a/notifications/utils.py b/notifications/utils.py index 893947a..26d6778 100644 --- a/notifications/utils.py +++ b/notifications/utils.py @@ -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 diff --git a/zod_bank/settings.py b/zod_bank/settings.py index 9b01f69..bc7c038 100644 --- a/zod_bank/settings.py +++ b/zod_bank/settings.py @@ -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")