Explorar o código

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

Ask Solem %!s(int64=11) %!d(string=hai) anos
pai
achega
528577ab24
Modificáronse 2 ficheiros con 4 adicións e 4 borrados
  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'