From a254f1d7bd23345d477d21bf83d201f9622ba835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Ho=C3=A0ng=20Anh=20Duy?= Date: Fri, 6 Dec 2024 09:54:38 +0700 Subject: [PATCH] Remove the usage of deprecated 'sqlalchemy.MetaData.bind' attribute --- docs/quick_tutorial/databases/tutorial/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/quick_tutorial/databases/tutorial/__init__.py b/docs/quick_tutorial/databases/tutorial/__init__.py index 74aa257405..4bdfeb0eef 100644 --- a/docs/quick_tutorial/databases/tutorial/__init__.py +++ b/docs/quick_tutorial/databases/tutorial/__init__.py @@ -7,7 +7,6 @@ def main(global_config, **settings): engine = engine_from_config(settings, 'sqlalchemy.') DBSession.configure(bind=engine) - Base.metadata.bind = engine config = Configurator(settings=settings, root_factory='tutorial.models.Root') @@ -18,4 +17,4 @@ def main(global_config, **settings): config.add_route('wikipage_edit', '/{uid}/edit') config.add_static_view('deform_static', 'deform:static/') config.scan('.views') - return config.make_wsgi_app() \ No newline at end of file + return config.make_wsgi_app()