Commit graph

81 commits

Author SHA1 Message Date
David Lord
9acb1d2412 simplify logging configuration
single default handler and formatter
don't remove handlers
configure level once using setLevel
document logging
reorganize logging tests
2017-07-31 12:49:03 -07:00
David Lord
a6079b5fd6 one more secret key in docs 2017-06-28 08:02:51 -07:00
David Lord
d590d6024d clean up secret key docs
consistent key across docs and examples
consistent key across tests, set in conftest
2017-06-28 07:58:06 -07:00
trirpi
6156e2f82f removed bug in memory sqlite uri 2017-06-16 21:15:33 +02:00
David Lord
56e53f99d1 formatting
[ci skip]
2017-06-09 10:28:54 -07:00
tristan fisher
8c8e523ca4 Fixes grammar and phrasing on envvar how-to 2017-06-09 10:54:47 -04:00
tristan fisher
6ef081c332 Add basic how-to on using envvars for config 2017-06-09 10:19:08 -04:00
David Lord
1fbe779fd2 make debugging bad key errors easier
* TRAP_BAD_REQUEST_ERRORS is enabled by default in debug mode
* BadRequestKeyError has the key in the description in debug mode

closes #382
2017-05-29 19:08:25 -07:00
David Lord
f710f02292 fix some config names in new doc 2017-05-29 10:29:06 -07:00
David Lord
5ff960a335 reformat config from table to linkable sections 2017-05-28 14:04:18 -07:00
Larivact
b9c8c7825d Clarify APPLICATION_ROOT #1714 2017-03-17 05:41:20 +01:00
Hsiaoming Yang
9c5f048ad2 Don't rely on X-Requested-With for pretty print json response (#2193)
* Don't rely on X-Requested-With for pretty print json response

* Fix test cases for pretty print json patch

* Fix gramma error in docs for pretty print json config

* Add changelog for JSONIFY_PRETTYPRINT_REGULAR
2017-03-07 10:09:46 +09:00
Grey Li
f04ea7f2ba Add tips for debug config with flask cli (#2196)
* Add tips for debug config with flask cli

`app.debug` and `app.config['DEBUG']` are not compatible with the `flask` script.

* Grammar fix

* Grammar fix
2017-03-04 11:29:04 +01:00
Jannis Leidel
8d03e03764 Fix rST rendering of env var (#2085)
This was broken in ad011bc32d (diff-fd40cf2be7711772de9d8316da038cceR263)
2016-11-15 11:57:09 +01:00
Josh Soref
0f2c793e14 Spelling (#1998)
* spelling: cacheability

* spelling: conceptually

* spelling: javascript

* spelling: reset

* spelling: raised

* comma: instead..., they...
2016-08-30 00:26:20 +02:00
Jason Brazeal
15493e0902 improved documentation for config.from_object (#1870) 2016-06-02 15:40:59 -07:00
ThiefMaster
e9e7e5e0c5 s/1.0/0.11/ in versionadded/versionchanged markers
closes #1817
2016-05-23 14:43:23 +02:00
Steven Loria
7d134e9556 Add JSONIFY_MIMETYPE configuration variable (#1728)
Allow jsonify responses' mimetype to be configured
2016-04-08 15:30:47 -07:00
bagratte
de4e0a553c minor revision of documentation. 2016-04-01 23:12:25 +02:00
Daniel Thul
3e7eef100e Fix typo. 2015-11-11 23:46:51 +01:00
Timo Furrer
906e72b219 support timedelta for SEND_FILE_MAX_AGE_DEFAULT config variable 2015-10-24 07:04:23 +02:00
defuz
a27525453b docs: remove unnecessary colons 2014-11-05 10:37:34 +03:00
defuz
0517016996 docs: `DEBUG, SERVER_NAME, PATH_INFO` 2014-11-05 07:10:49 +03:00
defuz
b5c9ad68dd docs: :file:app.py, :file:yourapp/templates 2014-11-05 06:45:22 +03:00
defuz
f7cbe74c35 docs: `True, False and None` 2014-11-05 06:04:58 +03:00
Ivan Ivaschenko
afbca98535 Using double-backticks: `None` 2014-11-02 22:41:38 +03:00
defuz
f87e593253 improve TEMPLATE_AUTO_RELOAD docs 2014-10-30 18:40:38 +03:00
defuz
2192b6941e set TEMPLATE_AUTO_RELOAD default value to None 2014-10-26 18:28:12 +03:00
Armin Ronacher
98620f73ab Added EXPLAIN_TEMPLATE_LOADING to help people debug templates not being loaded. 2014-09-03 17:57:51 +02:00
Armin Ronacher
5fa07f8d68 Always log now, even if debug is off. 2014-08-27 01:08:19 +02:00
Daniel Neuhäuser
f857bb1bed Merge pull request #1117 from lord63/patch-1
Fix some typos
2014-07-26 17:26:31 +02:00
lord63
cab4ec641f Correct the mistakes. 2014-07-26 20:15:36 +08:00
Nico Revin
63f9516d4b Update doclinks
Fix redirects and broken links
2014-07-24 23:30:50 +04:00
lord63
b4e291257b Fix typos in config.rst 2014-07-14 15:08:52 +08:00
lord63
b8c652603c Fix a typo in config.rst 2014-07-14 15:08:52 +08:00
Kenneth Reitz
421ee4341e Merge pull request #876 from defuz/templates-auto-reload
Add TEMPLATES_AUTO_RELOAD config key
2014-03-21 16:43:20 -04:00
Daniel Neuhäuser
8f865e1623 Merge pull request #874 from defuz/patch-1
fix typo (jsonfiy -> jsonify)
2014-03-13 20:38:19 +01:00
Mark Hildreth
6a37c1716d Fixed incorrect grammar in Config.rst
Fixed incorrect grammar in "SESSION_REFRESH_EACH_REQUEST" configuration description.
2013-12-24 14:36:28 -05:00
defuz
3e485009a8 add TEMPLATES_AUTO_RELOAD option to config 2013-09-30 21:06:49 +03:00
defuz
475b0c1cd9 fix typo (jsonfiy) 2013-09-26 18:46:30 +03:00
Armin Ronacher
d1d835c023 Added SESSION_REFRESH_EACH_REQUEST config option.
This also changes how sessions are being refreshed.  With the new
behavior set-cookie is only emitted if the session is modified or if the
session is permanent.  Permanent sessions can be set to not refresh
automatically through the SESSION_REFRESH_EACH_REQUEST config key.

This fixes #798.
2013-07-30 16:43:54 +02:00
Armin Ronacher
77d293cf49 Order JSON keys by default to avoid trashing HTTP caches 2013-06-01 19:24:03 +01:00
Armin Ronacher
3d9055b3b7 Added the JSONIFY_PRETTYPRINT_REGULAR config variable. This fixes #725 2013-06-01 00:20:00 +01:00
Armin Ronacher
8339cb3508 Added support for unicode json dumping. This fixes #535 2012-10-18 00:48:15 +01:00
Ron DuPlain
26da6a5365 Use default send_file max-age consistently.
Prior to this commit, the send_file max-age hook and config were only
used for the static file handler. Now they are used when calling
helpers.send_file directly.
2012-04-24 01:48:05 -04:00
Armin Ronacher
3249eeb438 Merge branch 'master' of github.com:mitsuhiko/flask 2012-04-09 15:26:09 +01:00
Armin Ronacher
ab110d8fe5 Documented config changes 2012-04-09 15:24:43 +01:00
Ron DuPlain
d94efc6db6 Expose send_file max-age as config value, #433.
Need to add the same hook in a Blueprint, but this is the first such
case where we need app.config in the Blueprint.
2012-03-13 16:34:16 -07:00
Cory Li
e4d9ccd6ec Changing instance_root to instance_path 2011-11-02 01:45:39 -03:00
Armin Ronacher
396c4bdcc0 Fixed a typo. "Does not" of course 2011-09-25 22:19:20 +02:00