... def create_app(): app = Flask(__name__) CORS(app) app.config.from_pyfile('./.env') api = Api(app)