def app(request): cl = redis.StrictRedis() cl.flushdb() return Application(Manager(QueueStore(cl), ResultStore(cl)))