소스 검색

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'