Commit graph

27 commits

Author SHA1 Message Date
Daniel Neuhäuser
d517f35d60 Merge branch '0.10-maintenance' 2014-01-02 19:21:55 +01:00
Daniel Neuhäuser
52098e1e4f Happy New Year 2014 2014-01-02 19:21:07 +01:00
Armin Ronacher
05161d3584 Rewrote tutorial to use the g based appcontext object 2013-09-01 01:32:41 +06:00
Armin Ronacher
42cf782ee3 Removed g object from example as it was unused 2013-08-30 19:50:45 +06: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
Thomas Waldmann
e1d356fb71 ported some more stuff to py 3.3
removed init_jinja_globals hack from app.py after consulting mitsuhiko
(didn't work on py 3.3 "as is")

removed with_statement future imports, not needed any more

needs more work on 2.7 as well as on 3.3
2013-05-22 01:33:04 +02:00
Alexander Thaller
8ca7fc47d0 Update README
No need to manually initialize the database with a call to `init_db()` as this call is done before `app.run()` in flaskr.py, when you run the file.
2013-04-05 13:48:08 +03:00
Kenneth Reitz
3fdcefbcda Merge pull request #625 from soulseekah/master
Use sqlite3.Row factory in Flaskr (#588)
2013-01-24 20:22:02 -08:00
oliversong
cc82feb084 Changing string to text in schema files 2012-12-26 00:05:18 -05:00
Armin Ronacher
61d43c7f12 Removed unnecessary end-tags and fixed some broken html 2012-12-19 15:46:18 +01:00
Iyra Gaura
be1ed33271 Ended your paragraph tag. 2012-11-17 18:13:14 +00: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
7e55b5084d Mention the TESTING flag in the docs 2011-06-17 21:53:11 +02:00
Armin Ronacher
b51ecd7f21 Updated examples 2011-05-27 20:29:47 +02:00
Armin Ronacher
164067920b Updated examples to work with pypy which has a incomplete sqlite3 in 1.4. Also disable a euc-kr test that does not work on pypy 2010-12-01 17:22:55 +01:00
Daniel Haaker
94a7312d5a Add missing semicolon to test
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
2010-10-29 18:41:10 +02:00
Armin Ronacher
dfecc86dd3 Ported examples over to new config. documented upgrading 2010-05-27 21:17:25 +02:00
Armin Ronacher
3053fcdb0d Make the example tests pass on Windows.
Also updated the documentation regarding that.
2010-04-20 20:01:00 +02:00
Armin Ronacher
bf52a17902 Removed useless code 2010-04-18 16:29:41 +02:00
Armin Ronacher
fb2d2e446b request_init -> before_request and request_shutdown -> after_request
This fixes #9.
2010-04-16 11:03:16 +02:00
Armin Ronacher
6dd92ae4b3 Beefed up the tutorial 2010-04-16 02:03:45 +02:00
Armin Ronacher
1246f4088a First part of the tutorial. Many explanations missing but it's a start. 2010-04-15 02:21:46 +02:00
Armin Ronacher
c4f5c2fb9a Fixed a typo 2010-04-14 17:09:34 +02:00
Armin Ronacher
fc94599285 Removed useless imports and added README 2010-04-14 16:47:53 +02:00
Armin Ronacher
c33675f025 Added mini blogging application as Flask example.
This should become the tutorial.
2010-04-14 16:44:29 +02:00