Tengo esto en mi /var/log/celery/w1.log
Estoy siguiendo los pasos para Apio aquí .
Tengo esto en mi celery.py
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', 'sample.settings') app = Celery('sample2', broker='amqp://', include=['sample2.tasks']) # Using a string here means the worker doesn't have to serialize # the configuration object to child processes. # - namespace='CELERY' means all celery-related configuration keys # should have a `CELERY_` prefix. app.config_from_object('django.conf:settings', namespace='CELERY') if __name__ == '__main__': app.start()¿Qué puedo hacer para arreglar esto? Gracias por adelantado.
agregue la línea soplada a init .py cerca de settings.py
from .celery import app as celery_app __all__ = ['celery_app']estructura del proyecto
- proj/ - manage.py - proj/ - __init__.py - settings.py - urls.py