Parcourir la source

Django example: App main should be proj.celery

Ask Solem il y a 11 ans
Parent
commit
aacb7d4a12
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      examples/django/proj/celery.py

+ 1 - 1
examples/django/proj/celery.py

@@ -4,7 +4,7 @@ from celery import Celery
 from django.conf import settings
 
 
-celery = Celery('tasks', broker='amqp://localhost')
+celery = Celery('proj.celery')
 celery.config_from_object(settings)
 celery.autodiscover_tasks(settings.INSTALLED_APPS)