瀏覽代碼

Fixes typo proj.celery -> proj

Ask Solem 11 年之前
父節點
當前提交
006a50f5ae
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      docs/django/first-steps-with-django.rst
  2. 1 1
      examples/django/proj/celery.py
  3. 1 1
      examples/next-steps/proj/celery.py

+ 1 - 1
docs/django/first-steps-with-django.rst

@@ -44,7 +44,7 @@ that defines the Celery instance:
 
     os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proj.settings')
 
-    app = Celery('proj.celery')
+    app = Celery('proj')
     app.config_from_object('django.conf:settings')
     app.autodiscover_tasks(settings.INSTALLED_APPS, related_name='tasks')
 

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

@@ -9,7 +9,7 @@ from django.conf import settings
 # set the default Django settings module for the 'celery' program.
 os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proj.settings')
 
-app = Celery('proj.celery')
+app = Celery('proj')
 
 # Using a string here means the worker will not have to
 # pickle the object when using Windows.

+ 1 - 1
examples/next-steps/proj/celery.py

@@ -2,7 +2,7 @@ from __future__ import absolute_import
 
 from celery import Celery
 
-app = Celery('proj.celery',
+app = Celery('proj',
              broker='amqp://',
              backend='amqp://',
              include=['proj.tasks'])