<filename>backend/django/smart/celery.py
from __future__ import absolute_import, unicode_literals

import configurations
import os
from celery import Celery

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'smart.settings')
os.environ.setdefault('DJANGO_CONFIGURATION', 'Dev')

configurations.setup()

app = Celery('smart')

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

app.autodiscover_tasks()

<filename>backend/django/smart/celery.py
from __future__ import absolute_import, unicode_literals

import configurations
import os
from celery import Celery

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'smart.settings')
os.environ.setdefault('DJANGO_CONFIGURATION', 'Dev')

configurations.setup()

app = Celery('smart')

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

app.autodiscover_tasks()
