from __future__ import absolute_import, unicode_literals
import os
from celery import Celery

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'edit_log.settings.dev')  # 设置django环境

app = Celery('edit_log')

app.config_from_object('django.conf:settings')#, namespace='CELERY')  # 使用CELERY_ 作为前缀，在settings中写配置

from django.conf import settings
app.autodiscover_tasks(settings.INSTALLED_APPS)  # 发现任务文件每个app下的task.py
5d3996d11bf322e13bc3da855ae1f3d571d63de9
<mask token>

<mask token>
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'edit_log.settings.dev')
<mask token>
app.config_from_object('django.conf:settings')
<mask token>
app.autodiscover_tasks(settings.INSTALLED_APPS)

<mask token>
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'edit_log.settings.dev')
app = Celery('edit_log')
app.config_from_object('django.conf:settings')
<mask token>
app.autodiscover_tasks(settings.INSTALLED_APPS)

from __future__ import absolute_import, unicode_literals
import os
from celery import Celery
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'edit_log.settings.dev')
app = Celery('edit_log')
app.config_from_object('django.conf:settings')
from django.conf import settings
app.autodiscover_tasks(settings.INSTALLED_APPS)

from __future__ import absolute_import, unicode_literals
import os
from celery import Celery

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'edit_log.settings.dev')  # 设置django环境

app = Celery('edit_log')

app.config_from_object('django.conf:settings')#, namespace='CELERY')  # 使用CELERY_ 作为前缀，在settings中写配置

from django.conf import settings
app.autodiscover_tasks(settings.INSTALLED_APPS)  # 发现任务文件每个app下的task.py