浏览代码

Temporary until 3.1.4 (Issue #1647)

Ask Solem 11 年之前
父节点
当前提交
003d94e337
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      docs/django/first-steps-with-django.rst
  2. 1 1
      examples/django/proj/__init__.py

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

@@ -62,7 +62,7 @@ so that the ``@shared_task`` decorator (mentioned later) will use it:
 
 
     from __future__ import absolute_import
     from __future__ import absolute_import
 
 
-    from .celery import app as celery_app
+    from .celery import app
 
 
 Note that this example project layout is suitable for larger projects,
 Note that this example project layout is suitable for larger projects,
 for simple projects you may use a single contained module that defines
 for simple projects you may use a single contained module that defines

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

@@ -2,4 +2,4 @@ from __future__ import absolute_import
 
 
 # This will make sure the app is always imported when
 # This will make sure the app is always imported when
 # Django starts so that shared_task will use this app.
 # Django starts so that shared_task will use this app.
-from .celery import app as celery_app
+from .celery import app