Permalink
Browse files

Use celery.conf.add_defaults

  • Loading branch information...
ask committed Jul 26, 2012
1 parent 56d4021 commit 64a3762538b7b1090e204bf03f40363fe8314774
Showing with 2 additions and 3 deletions.
  1. +2 −3 README.rst
View
@@ -51,7 +51,7 @@ If you want use the flask configuration as a source for the celery
configuration you can do that like this::
celery = Celery('myapp')
- celery.config_from_object(flask_app.config)
+ celery.conf.add_defaults(app.config)
If you need access to the request inside your task
@@ -62,8 +62,7 @@ then you can use the test context::
app = Flask('myapp')
celery = Celery('myapp')
-
- celery.config_from_object(app.config)
+ celery.conf.add_defaults(app.config)
@celery.task
def hello():

0 comments on commit 64a3762

Please sign in to comment.