Commit Graph

23 Commits

Author SHA1 Message Date
David Lord c2705ffd9c
merge app and request context 2025-09-19 16:43:53 -07:00
David Lord e0dad45481
update docs about contexts 2022-07-08 11:13:09 -07:00
karintou8710 21def4e05c Fixes old print statement in some documentation pages 2021-10-16 02:04:07 +09:00
David Lord 171aabc87d
remove unused ref directives
replace page refs with doc directives
2020-04-04 12:57:14 -07:00
Harry Moreno 2d2c0169d4
Fix docs, how to get db connection in pattern
The docs are inaccurately suggestion a db connection would be available at `g.db`, after calling `get_db()` a connection will be available at `g._database` but even then I think instructing the user to use `get_db()` is the best way forward.
2017-12-08 15:18:02 -05:00
Jeff Widman bb0e755c80 Migrate various docs links to https (#2180)
Also fixed a few outdated links
2017-02-11 10:43:11 +01:00
Leo Tindall c0087204e5 Documentation: Clarify instructions about changing row_factory for SQLite3 (#1573)
* Clarify instructions about changing row_factory

When I was working through the tutorial, this was very confusing to me; so, I've added the code and clarification that would have helped me get through it faster.

* Clarify the nature of Row objects

* Rewrite code example for further clarity.
2016-06-14 23:55:47 -07:00
Mieszko 5d9cdc65b5 Update sqlite3.rst 2014-11-08 22:21:27 +01:00
flowerhack bcba7eb397 Tweaked sqlite3 documentation 2014-11-03 12:11:02 -05:00
Nick Luchsinger 37fb0516f4 Minor typos in sqlite3.rst
Self-explanatory.
2014-09-27 18:39:43 -07:00
Armin Ronacher 6f44ca705f Fixed sqlite3 pattern. This fixes #924 2014-02-08 22:14:23 +00:00
Bill Mill 159ae3dc26 Fix doc bug, clarify use of make_dicts 2013-07-31 22:06:15 -04:00
Armin Ronacher 29bda590b2 Modernized docs in a few places 2013-06-09 12:30:27 +01:00
Thomas Waldmann 8bb972e5ae fix minitwit/flaskr test errors, improve docs about file open mode
app.open_resource needs to get called with the correct mode param (python3
will read bytes [not str] if the wrong mode is used), add mode param docs.

rv.data is bytes, fix the data type we compare it with to be also bytes
2013-05-25 19:13:48 +02:00
Gennady Kovshenin 82b29c09ac Use sqlite3.Row factory in Flaskr
As pointed out in issue #588 sqlite3.Row should be used instead of
using casting to dict(). Also altered the "Easy Querying" Patterns
example to include the more correct way to return rows as dicts.
Did not touch Tutorial examples ("Views"), as these are not up to
date with the current Flaskr code, and the "Show Entries" section
points out the "Easy Querying" section on how to convert to a
dict().
2012-11-05 06:00:46 +06:00
Armin Ronacher c2e5799879 Updated examples to new sqlite patterns and added new section to appcontext docs 2012-10-09 14:02:32 -05:00
Armin Ronacher d3ca55177a Updated the docs and examples to non-failing teardown handlers 2011-08-25 20:56:43 +01:00
Armin Ronacher 5ca17c86c0 Added a missing colon 2011-08-07 01:51:02 +02:00
Armin Ronacher a9fc040c39 Updated documentation to use teardown request where appropriate 2011-05-27 20:21:41 +02:00
Ron DuPlain 6875a057ec Fixed small typos in docs. Added a cross-ref. 2010-10-07 19:32:07 +08:00
Adam Zapletal 4ed7a923f5 Minor sqlite3 documentation fixes (grammar, etc) 2010-06-28 15:12:33 +08:00
Chris Edgemon a7ff9dbddd Proofreading the documentation 2010-04-19 23:25:51 -05:00
Armin Ronacher 123a1ad019 Breaking docs up into smaller pieces 2010-04-18 13:35:40 +02:00