import celery
import os


app = celery.Celery('rsvp')
app.conf.update(BROKER_URL=os.environ['REDIS_URL'],
                CELERY_RESULT_BACKEND=os.environ['REDIS_URL'])


@app.task
def add(x, y):
    return x + y

@@ -44,41 +44,22 @@
 ry('
-rsvp')%0Aapp.conf.update(BROKER_URL
+tasks', broker
 =os.
@@ -57,32 +57,36 @@
 roker=os.environ
+.get
 %5B'REDIS_URL'%5D,%0A 
@@ -87,46 +87,16 @@
 L'%5D,
-%0A                CELERY_RESULT_BACKEND
+ backend
 =os.
@@ -102,16 +102,20 @@
 .environ
+.get
 %5B'REDIS_

reconfigure celery app