Kaynağa Gözat

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

Ask Solem 11 yıl önce
ebeveyn
işleme
528577ab24
2 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  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'