浏览代码

README renames app instance from "celery" to "app"

Ask Solem 11 年之前
父节点
当前提交
528577ab24
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      README.rst
  2. 2 2
      docs/includes/introduction.txt

+ 2 - 2
README.rst

@@ -95,9 +95,9 @@ Celery is...
 
         from celery import Celery
 
-        celery = Celery('hello', broker='amqp://guest@localhost//')
+        app = Celery('hello', broker='amqp://guest@localhost//')
 
-        @celery.task
+        @app.task
         def hello():
             return 'hello world'
 

+ 2 - 2
docs/includes/introduction.txt

@@ -89,9 +89,9 @@ Celery is...
 
         from celery import Celery
 
-        celery = Celery('hello', broker='amqp://guest@localhost//')
+        app = Celery('hello', broker='amqp://guest@localhost//')
 
-        @celery.task
+        @app.task
         def hello():
             return 'hello world'