danidee10/django-notifs

View on GitHub
notifs/celery.py

Summary

Maintainability
A
0 mins
Test Coverage
"""Celery init."""

from __future__ import absolute_import, unicode_literals

import os

from celery import Celery

# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'notifs.settings')

app = Celery('notifs')
app.config_from_object('django.conf:settings', namespace='CELERY')

app.autodiscover_tasks()