def on_startup(app): app['db'] = await sa.create_engine(config.SA_URL) app['redis'] = await create_redis(config.REDIS_URL)