Skip to content
Myr

Typo in extension development docs.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Simon Sapin · committed by Armin Ronacher · parent 88a031a · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/extensiondev.rst+1 added-1 removed
220 unmodified lines
221Either way you can use the database from the views like this::222223 @app.route('/')224 def show_all():225 cur = g.sqlite_db.cursor()225 cur = g.sqlite3_db.cursor()226 cur.execute(...)227228But how would you open a database connection from outside a view function?229This is where the `db` object now comes into play:
47 unmodified lines