from celery import Celery
import os

if not os.getenv('DJANGO_SETTINGS_MODULE'):
    os.environ['DJANGO_SETTINGS_MODULE'] = 'MOTTA_mall.settings.dev'

# MOTTA_mall项目文件夹
app = Celery('MOTTA_mall')

# 导入celery配置
app.config_from_object('celery_tasks.config')

# 自动注册celery任务
app.autodiscover_tasks([
    'celery_tasks.email',
    'celery_tasks.sms',
])
16d6473a0eb771561268526bb467576f8e13013f
<mask token>

<mask token>
if not os.getenv('DJANGO_SETTINGS_MODULE'):
    os.environ['DJANGO_SETTINGS_MODULE'] = 'MOTTA_mall.settings.dev'
<mask token>
app.config_from_object('celery_tasks.config')
app.autodiscover_tasks(['celery_tasks.email', 'celery_tasks.sms'])

<mask token>
if not os.getenv('DJANGO_SETTINGS_MODULE'):
    os.environ['DJANGO_SETTINGS_MODULE'] = 'MOTTA_mall.settings.dev'
app = Celery('MOTTA_mall')
app.config_from_object('celery_tasks.config')
app.autodiscover_tasks(['celery_tasks.email', 'celery_tasks.sms'])

from celery import Celery
import os
if not os.getenv('DJANGO_SETTINGS_MODULE'):
    os.environ['DJANGO_SETTINGS_MODULE'] = 'MOTTA_mall.settings.dev'
app = Celery('MOTTA_mall')
app.config_from_object('celery_tasks.config')
app.autodiscover_tasks(['celery_tasks.email', 'celery_tasks.sms'])

from celery import Celery
import os

if not os.getenv('DJANGO_SETTINGS_MODULE'):
    os.environ['DJANGO_SETTINGS_MODULE'] = 'MOTTA_mall.settings.dev'

# MOTTA_mall项目文件夹
app = Celery('MOTTA_mall')

# 导入celery配置
app.config_from_object('celery_tasks.config')

# 自动注册celery任务
app.autodiscover_tasks([
    'celery_tasks.email',
    'celery_tasks.sms',
])