Parcourir la source

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

Ask Solem il y a 12 ans
Parent
commit
528577ab24
2 fichiers modifiés avec 4 ajouts et 4 suppressions
  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'