Browse Source

Merge pull request #931 from aphexcx/patch-1

Update celery.rst
pull/929/merge
Armin Ronacher 11 years ago
parent
commit
e95cef66a3
  1. 6
      docs/patterns/celery.rst

6
docs/patterns/celery.rst

@ -60,12 +60,12 @@ Flask::
from flask import Flask
app = Flask(__name__)
app.config.update(
flask_app = Flask(__name__)
flask_app.config.update(
CELERY_BROKER_URL='redis://localhost:6379',
CELERY_RESULT_BACKEND='redis://localhost:6379'
)
celery = make_celery(app)
celery = make_celery(flask_app)
@celery.task()

Loading…
Cancel
Save