Skip to content

Commit

Permalink
Merge pull request #3771 from duynhaaa/patch-1
Browse files Browse the repository at this point in the history
Update SQLAlchemy integration tutorial to remove `sqlalchemy.MetaData.bind`'s usage
  • Loading branch information
digitalresistor authored Dec 20, 2024
2 parents ef0f686 + a254f1d commit eb0e01a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/quick_tutorial/databases/tutorial/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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()
return config.make_wsgi_app()

0 comments on commit eb0e01a

Please sign in to comment.