Commit Graph

374 Commits

Author SHA1 Message Date
Andrew Plummer b2b531a36b Tweak wording in viewdecorators.rst 2014-03-26 16:52:06 +00:00
Andrew Plummer db1be12aea Fix import in viewdecorators.rst for @templated 2014-03-26 16:40:25 +00:00
Kenneth Reitz 7e4d51c91c Merge pull request #869 from christophersu/doc-fix-1
Add missing import on SQLAlchemy documentation page
2014-03-21 16:46:05 -04:00
Armin Ronacher 82f99f42a8 Disarmed a sentence a bit 2014-02-09 13:35:38 +00:00
Armin Ronacher 47a41b645f Merge pull request #884 from rsyring/patch-2
Update appfactories.rst, make extension related section clearer
2014-02-09 13:27:35 +00:00
Armin Ronacher 6f44ca705f Fixed sqlite3 pattern. This fixes #924 2014-02-08 22:14:23 +00:00
Armin Ronacher e95cef66a3 Merge pull request #931 from aphexcx/patch-1
Update celery.rst
2014-02-08 17:47:22 +00:00
Armin Ronacher 1f638d63ff Merge pull request #948 from Spittie/patch-1
Update fileuploads.rst
2014-02-08 17:34:30 +00:00
Alex Pearce 3d6de4dd79 Explicitly pass the Celery instance name.
When starting a Celery worker module, it is assumed that the Celery instance within the module is called `app`. This is not the case in the Celery pattern, where it is called `celery`, and so must be explicitly referenced.
2014-02-05 20:11:06 +00:00
Spittie de3dbd3125 Update fileuploads.rst
secure_filename is under werkzeug.utils (http://werkzeug.pocoo.org/docs/utils/)
2014-01-12 02:54:08 +01:00
Afik 67c165bcbb Update celery.rst
With the latest version of Celery (3.1.6), following this tutorial produces the following error when attempting to start the celery worker: 

    user_preload = tuple(self.app.user_options['preload'] or ())
AttributeError: 'Flask' object has no attribute 'user_options'

Using `app` as the variable name here confuses celery. Renaming `app` to `flask_app` in the tutorial solves the issue and allows the celery worker to start successfully.
2013-12-16 22:04:51 -08:00
Christopher Su 9cecf0d81c moved Table import to next code block 2013-10-22 11:37:35 -07:00
Sean Cronin a7f5d60789 Makes the error names consistent 2013-10-15 12:37:25 -04:00
rsyring fc85bf42ae Update appfactories.rst, make extension related section clearer 2013-10-11 08:39:46 -04:00
Christopher Su 8089eb5769 added missing import in sqlalchemy doc 2013-09-19 23:31:09 -07:00
Jet Sun 6ebe45b0ad Fix typo. 2013-09-07 17:42:06 -07:00
Bill Mill 159ae3dc26 Fix doc bug, clarify use of make_dicts 2013-07-31 22:06:15 -04:00
Armin Ronacher 335cbe01ce Fixed a typo 2013-06-11 20:18:26 +01:00
Armin Ronacher f9f8180f15 Added documentation on API error handlers 2013-06-09 17:26:10 +01:00
Armin Ronacher 29bda590b2 Modernized docs in a few places 2013-06-09 12:30:27 +01:00
Armin Ronacher 681cb8f366 Switch to teardown_appcontext for docs in sqlalchemy pattern 2013-06-07 15:42:49 +01:00
Armin Ronacher ef72b78042 Imply the |safe on tojson in templates and change escaping logic 2013-06-03 12:25:08 +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
Thomas Waldmann 40fad2ece8 document python 2.6 minimum requirement, remove all stuff that refers to 2.5 2013-05-18 17:06:25 +02:00
Armin Ronacher ef62e8440e Merge pull request #702 from edburnett/master
AJAX with jQuery documentation update
2013-05-14 03:25:49 -07:00
Jason Moon d1bf82b0f4 Fixed typo in URL Processor documentation 2013-04-14 00:10:38 -07:00
Ed Burnett 0a5d62f9ee Updated jquery.rst with the current Google Developer hosted libraries URL and jquery version 2013-03-26 16:56:05 -07:00
Markus Unterwaditzer 9d8674d5b6 Added more information about app factories. 2013-03-17 21:42:30 +01:00
Alex Couper a92588f161 Add closing html tag 2013-02-22 11:15:40 +00:00
Armin Ronacher 05f162329d Added celery pattern 2013-01-27 00:38:25 +00: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
Trung Ly b4fc4412e8 Update docs/patterns/deferredcallbacks.rst
fix example code in Deferred Callback docs: don't set response upon executing callback
2013-01-14 14:53:06 -08:00
Erik Rose a319516518 Fix a typo in the deferred-callbacks docs. 2012-12-11 14:11:27 -08:00
Max Countryman caefb67ccd correcting typo 2012-11-05 15:31:07 -08: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 b5bb49d080 Added a new example for checksums on input data. This fixes #601 2012-10-07 15:46:21 +02:00
Armin Ronacher 18413ed1bf Added HTTP override middleware to docs. This fixes #582 2012-10-07 13:02:05 +02:00
pinchsp 69e419e020 Fixed small mistake in sqlalchemy pattern 2012-09-04 00:51:45 -03:00
Armin Ronacher d5218997d9 Added flask.stream_with_context 2012-06-27 15:06:39 +01:00
Armin Ronacher 9be47f5932 Merge pull request #479 from dmishe/patch-1
Removed unneeded print statements form mongokit pattern doc
2012-06-17 06:25:10 -07:00
Ron DuPlain a3cb2a3382 Use American English for "behavior" in docs.
Prompted by plaes on #pocoo, mitsuhiko confirmed to use American English.
2012-04-19 11:51:38 -04:00
Ron DuPlain b885edf810 Fix typo pointed out by tri on #pocoo. 2012-04-18 15:54:04 -04:00
Dmitry Shevchenko 9c48387072 Removed unneeded print statements form mongokit pattern doc 2012-04-08 18:09:12 -05:00
Ron DuPlain df772df24f Touch up run_simple doc, #446. 2012-04-01 11:40:37 -04:00
Ron DuPlain 8740fff907 Merge pull request #446 from jtsoi/patch-1
Debug example with run_simple and flask app.
2012-04-01 08:37:44 -07:00
Kenneth Reitz 079c5ef7ff Merge pull request #445 from iammookli/patch-1
Update docs/patterns/mongokit.rst
2012-03-20 19:01:28 -07:00
Filip Ristić c2661dd4bc Update docs/patterns/packages.rst 2012-03-20 22:07:58 +01:00
jtsoi fe9f5a4768 Added an example of how to configure debugging with run_simple, it has to be enabled both for the Flask app and the Werkzeug server. 2012-03-16 09:38:40 +01:00
iammookli 73cb15ed2c Update docs/patterns/mongokit.rst 2012-03-15 18:20:17 -07:00
awsum 20a3281209 Update docs/patterns/wtforms.rst 2012-02-25 15:29:13 -05:00
Ron DuPlain 5cb50a46ee Fix Message Flashing doc, from SwashBuckla #pocoo.
Provide a full example as promised in the doc.
2012-01-31 05:46:18 -05:00
FND 76c1a1f722 fixed spelling of "instantiate"
while the interwebs suggest "instanciate" might be a valid spelling, it
seems quite uncommon and potentially irritating (to pedants like myself)
2012-01-23 20:12:57 +01:00
Ron DuPlain c93ea5551c Keep flashed message examples in one place. 2012-01-16 23:16:43 -05:00
Steven Osborn fa069f94de Allow category filtering in get_flashed_messages to allow rending categories in separate html blocks 2012-01-16 22:45:42 -05:00
awsum d50a0b4955 typo fix 2012-01-07 21:11:35 +02:00
kracekumar b115b38dbe Added PasswordField in docs/patterns/wtforms.rst 2011-10-06 23:45:35 +05:30
Armin Ronacher 54875e9317 Direct passthrough is counter productive 2011-09-20 00:03:24 +02:00
Armin Ronacher 8840973a33 Fixed a cross reference in the docs. 2011-09-18 12:50:56 +02:00
Armin Ronacher b40af3ccd9 Updated the documentation to show how to set cookies for not yet existing responses 2011-09-05 18:51:47 +02: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
Brandon Stafford 5304a15adc Add runserver.py filename to match earlier section of example 2011-08-04 22:31:11 -03:00
Armin Ronacher 029eebe2f5 No need for the directive here. 2011-07-27 22:34:56 +02:00
Armin Ronacher 79aa4ac14d Merge branch 'master' of github.com:mitsuhiko/flask 2011-07-27 22:34:34 +02:00
Armin Ronacher 4d2c8181b4 Updated docs for streaming 2011-07-27 22:34:18 +02:00
Dan Callahan 290925e133 Minor documentation typo / grammar fixes 2011-07-19 16:42:11 -05:00
Felix Hummel 8d2daea327 be consistent with app.config['UPLOAD_FOLDER']
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
2011-07-15 19:02:19 +02:00
ThomasWaldmann 441c8a5b93 fixed typo 2011-07-10 09:25:08 -07:00
Hadley Rich c6dbcd572b Trivial fix for PathDispatcher example usage 2011-06-30 22:44:28 +12:00
Armin Ronacher c26a6dd50c Admin -> Backend 2011-06-29 15:36:02 +02:00
Armin Ronacher 22d468e190 Less annoying gender neutral forms 2011-06-28 14:34:07 +02:00
Armin Ronacher 4e47ea9105 Merge branch 'master' into blueprints 2011-06-27 09:30:39 +02:00
Jeffrey Finkelstein 12761bd02c fixed pronoun gender in documentation 2011-06-26 21:43:48 -04:00
Armin Ronacher 8232aaebaf Merge branch 'master' into blueprints 2011-06-27 00:35:38 +02:00
Ron DuPlain 8e928a2fcb Document Werkzeug's run_simple for dispatch, #225. 2011-06-25 14:11:53 -04:00
Armin Ronacher 2d946b96a1 Merge branch 'master' into blueprints 2011-06-25 12:26:13 +02:00
wilsaj c40937e7bf Bug fix in the documentation for Deploying with Fabric: as of Fabric 1.0, in the local() function capture=False by default, so it must be explicitly set to capture=True so it returns a python string (http://docs.fabfile.org/en/1.0.1/api/core/operations.html#fabric.operations.local) 2011-06-21 10:05:26 -05:00
Peter Manser e6b9f509ba Improving documentation for loading jQuery. Now using Google CDN with fallback to local jQuery. 2011-06-20 23:51:30 +02:00
Armin Ronacher 3add9c5fc2 Merge branch 'master' into blueprints 2011-06-20 08:44:02 +02:00
Armin Ronacher d38c61f42a More modules -> blueprints 2011-06-17 21:58:03 +02:00
Armin Ronacher d62e277dfe Added pattern for url processors because the API documentation itself might not reveal much. 2011-06-17 21:33:31 +02:00
Armin Ronacher 86175054d6 More docstrings for blueprints. 2011-06-17 20:27:25 +02:00
Armin Ronacher dbfa04ece6 Removed old module documentation and added some new for blueprints. 2011-06-17 03:29:31 +02:00
Ron DuPlain 65f9bc7b22 Touch up (tiny) doc as requested by emiel, #244. 2011-06-16 10:28:51 -04:00
Armin Ronacher a9fc040c39 Updated documentation to use teardown request where appropriate 2011-05-27 20:21:41 +02:00
Armin Ronacher 19dfe5f631 Merge pull request #230 from RonnyPfannschmidt/docs
the import order note was meant to be bold, not cursive
2011-05-08 03:32:31 -07:00
Ronny Pfannschmidt 74514fc837 the import order note was meant to be bold, not cursive 2011-05-08 11:31:52 +02:00
Aaron Kavlie c6e4d743a9 A couple of corrections to the example fabfile. 2011-04-27 14:28:07 -07:00
Armin Ronacher dd75cc9e28 Merge branch 'appdispatch-docs' 2011-03-15 12:07:32 -04:00
Armin Ronacher 43cf3f307f Improved wording 2011-03-15 11:25:17 -04:00
Armin Ronacher 60de3f295b Updated appdispatch pattern 2011-03-14 16:44:58 -04:00
Drew Vogel 3deae1bd48 Clarified language related to avoiding circular imports.
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
2011-03-14 14:26:33 -04:00
Armin Ronacher 45b97d14e3 Started work on app dispatch docs 2011-03-14 14:19:12 -04:00
matt swanson 5764f3abd2 fixing cross-referenced links on jquery patterns page 2011-03-13 15:48:19 -09:00
matt swanson 4046d3bd30 fixing cross-referenced links on fileupload patterns page 2011-03-13 15:47:40 -09:00
Jerry Baker 09a06abb77 Updated 'declarative' link in docs/patterns/sqlalchemy.rst
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
2011-02-17 22:36:04 +01:00
Armin Ronacher 8ed051d5b5 Fixed a terrible wrong part in the module documentation 2011-02-10 21:43:13 +01:00
Armin Ronacher 4228d7281f No reference for favicon 2011-01-24 13:51:06 +01:00
mvantellingen b0ca7e5af1 Implement the endpoint decorator. This allows you to easily map views to endpoints when using the werkzeug routing.
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
2011-01-24 13:49:11 +01:00
Dag Odenhall 7afd49c648 Pattern documentation for favicons
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
2011-01-20 16:33:56 +01:00
Armin Ronacher 24c1713ff5 Improved documentation for model registration 2011-01-13 22:18:49 +01:00
agentultra 325b96099a Small change to the packages documentation example for clarity 2010-10-07 19:33:10 +08:00
Ron DuPlain 6875a057ec Fixed small typos in docs. Added a cross-ref. 2010-10-07 19:32:07 +08:00
agentultra c62422c318 Updated documentation on packaging patterns 2010-09-10 06:56:16 +08:00
Armin Ronacher d903f55e83 s/sdist/dist/. This fixes #106 2010-08-18 21:58:04 +02:00
Armin Ronacher a3f78af870 Improved the templated decorator in the documentation as recommended by Thadeus Burgess on the mailinglist 2010-08-13 23:37:57 +02:00
Armin Ronacher 6b5ba14521 Added a missing is 2010-08-10 23:10:55 +02:00
Armin Ronacher c41a1cd8dc Another typo fix 2010-08-07 13:38:26 +02:00
jgraeme ff2786d8af Fix some typos in the docs 2010-08-03 18:07:40 +08:00
Armin Ronacher 0d9b6347d6 Fixed two typos in the pattern documentation. Thanks Ricky de Laveaga 2010-07-18 10:30:58 +02:00
Armin Ronacher dbb3620792 Fixed an rst error 2010-07-15 21:22:11 +02:00
Armin Ronacher e84ca8ed94 Clearified that 2010-07-15 15:43:17 +02:00
Armin Ronacher bc8e021b34 Added a note on references to static folders 2010-07-15 15:42:27 +02:00
Armin Ronacher 54ebd88f45 Documented MAX_CONTENT_LENGTH in the file upload docs and linked to Flask-Uploads 2010-07-15 14:39:49 +02:00
Armin Ronacher f1a6fbe250 send_from_directory > SharedDataMiddleware 2010-07-06 20:28:48 +02:00
florentx 16e4d5a655 Various typos. 2010-07-07 02:09:07 +08:00
Armin Ronacher 5dd4e9f318 Fixed a typo 2010-07-06 16:10:49 +02:00
Armin Ronacher 34fcd19306 Added chapter about fabric based deployments 2010-07-06 16:07:13 +02:00
Armin Ronacher 77743a5f15 Some documentation improvements 2010-07-06 12:33:39 +02:00
Armin Ronacher d0357b44b0 Added links to Flask-WTF and Flask-SQLAlchemy. This fixes #73 2010-07-01 01:22:46 +02:00
Adam Zapletal 4ed7a923f5 Minor sqlite3 documentation fixes (grammar, etc) 2010-06-28 15:12:33 +08:00
Christopher Grebs 87c2c79442 fixed mongokit pattern to show how the flask way to configure hostname and port 2010-06-28 07:13:32 +08:00
Christopher Grebs b5db6bf529 now really pushed the fix in sqlalchemy pattern 2010-06-28 07:13:32 +08:00
Christopher Grebs 824c10c6e4 Added MongoKit pattern and fixed typo in sqlalchemy pattern 2010-06-28 07:13:32 +08:00
Andre Wobst f66c252e47 typo 2010-06-15 07:14:58 +08:00
jgraeme 540eca16f8 Fix some typos in the docs
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
2010-06-10 21:54:38 +02:00
Dag Odenhall 2fb09d07f2 Another typo in jQuery pattern 2010-06-05 19:34:19 +08:00
Dag Odenhall e7a9df784c Typo in jQuery pattern docs 2010-06-05 19:34:19 +08:00
Dag Odenhall 216472b43d Fix missing plural in documentation 2010-06-02 05:32:26 +08:00
Armin Ronacher ce6e4cbd73 0.5 is 0.3 now, why skip numbers? 2010-05-28 01:18:29 +02:00
Armin Ronacher dfecc86dd3 Ported examples over to new config. documented upgrading 2010-05-27 21:17:25 +02:00
Armin Ronacher 02b916d509 Added appfactory pattern 2010-05-27 17:55:57 +02:00
Armin Ronacher 182ee31503 Added chapter about config 2010-05-27 17:42:01 +02:00
Armin Ronacher 99c6287ce2 appengine -> app engine 2010-05-27 13:54:40 +02:00
Armin Ronacher 9d19b77acf Added lazyloading pattern and explicit chapter links in tutorial.
This fixes #49.
2010-05-26 14:49:01 +02:00
Armin Ronacher 854e0e26d1 Fixed some documentation issues. This fixes #41. 2010-05-18 18:05:05 +02:00
Stephane Wirtel 395ff8120c Fix typo. 2010-05-18 21:04:24 +08:00
Armin Ronacher 267f5f5c82 Added a pattern for custom error pages. 2010-05-17 23:14:50 +02:00
Armin Ronacher ea5e654e9e Added a documentation chapter about logging 2010-05-17 22:46:35 +02:00
Armin Ronacher b18560fcaa s/will// 2010-05-17 01:51:16 +02:00
Armin Ronacher 931dcc4c80 Fixed a doc bug and added distribtue docs. 2010-05-17 01:41:57 +02:00
Armin Ronacher 9da5795d79 Merge branch 'master' into module-support 2010-05-03 20:00:42 +02:00
Armin Ronacher f345af8d9d Use unicode in SQLAlchemy pattern. 2010-05-03 19:58:07 +02:00
Armin Ronacher ce53d10236 Merge branch 'master' into module-support 2010-05-03 13:08:00 +02:00
Armin Ronacher d0eefb01d1 Added link to snippets website to the patterns docs. 2010-05-03 12:22:27 +02:00
Armin Ronacher 7e1db5978c Added module support to templated decorator. 2010-05-02 12:11:04 +02:00
Armin Ronacher eeb0e94951 Fixed merging confict 2010-05-02 12:09:31 +02:00
Armin Ronacher a7266ffb90 Added @templated decorator to the patterns. 2010-05-02 12:08:17 +02:00
unknown 2ba88eefb5 Fixed simple typo 2010-04-26 14:57:53 +08:00
Armin Ronacher 13933eeaf8 Merge branch 'master' into module-support 2010-04-25 20:31:22 +02:00
Armin Ronacher 4559e4f0f1 Added docs on caching and decorators. 2010-04-25 18:55:01 +02:00
Armin Ronacher 58fa088abc Added missing file (fileupload docs) 2010-04-25 13:18:53 +02:00
Armin Ronacher 85d43079d1 Added missing file (fileupload docs) 2010-04-25 03:46:42 +02:00
Armin Ronacher c21caa5047 Merge branch 'master' into module-support 2010-04-24 20:38:50 +02:00
Armin Ronacher 0c54d0a0e5 Added pattern for file uploads. 2010-04-24 20:36:06 +02:00
Armin Ronacher 0da39c76e3 More documentation updates :) 2010-04-24 18:30:38 +02:00
Armin Ronacher dc3f13df54 Corrected validator usage in the wtforms docs. 2010-04-23 12:17:12 +02:00
florentx 3c821a0fa4 Fix typos and remove unused import. 2010-04-20 18:40:58 +02:00
Armin Ronacher 715f64d2af Some more documentation updates. 2010-04-20 13:01:10 +02:00
Armin Ronacher 1404a85bc5 Fixed WTForms example. 2010-04-20 11:22:20 +02:00
Chris Edgemon a7ff9dbddd Proofreading the documentation 2010-04-19 23:25:51 -05:00
Armin Ronacher 4ff9493e57 POST -> post in HTML 2010-04-20 01:37:51 +02:00
Armin Ronacher 50a3313071 Fixed typo in form docs 2010-04-20 01:35:22 +02:00
Armin Ronacher ade490514d Fixed a security problem caused by changed simplejson semantics.
Notice: this was never in a release version of Flask.
2010-04-19 18:51:04 +02:00
Armin Ronacher f878919753 With -> with in headline 2010-04-19 16:01:14 +02:00
Armin Ronacher a99e408bd1 Finished jQuery example documentation. 2010-04-19 15:59:16 +02:00
Armin Ronacher 6e2be6a0b3 Added JSON Support and started working on jQuery docs 2010-04-19 15:39:07 +02:00
Armin Ronacher 166f5ed254 Forgot to link the website. 2010-04-19 02:28:05 +02:00
Armin Ronacher 56675b3bad Fixed indentation of an example. 2010-04-19 02:25:31 +02:00
Armin Ronacher 976e792336 Added links for SQLAlchemy and WTForms. 2010-04-19 02:24:02 +02:00
Armin Ronacher ce18d4575d Added WTForms documentation. 2010-04-19 02:22:59 +02:00
Armin Ronacher 94cf620914 Updated SQLAlchemy docs. 2010-04-18 18:29:55 +02:00
Armin Ronacher 123a1ad019 Breaking docs up into smaller pieces 2010-04-18 13:35:40 +02:00