David Lord
26bb6b1c56
move send_file and send_from_directory to Werkzeug
...
The implementations were moved to Werkzeug, Flask's functions become
wrappers around Werkzeug to pass some Flask-specific values.
cache_timeout is renamed to max_age. SEND_FILE_MAX_AGE_DEFAULT,
app.send_file_max_age_default, and app.get_send_file_max_age defaults
to None. This tells the browser to use conditional requests rather than
a 12 hour cache.
attachment_filename is renamed to download_name, and is always sent if
a name is known.
Deprecate helpers.safe_join in favor of werkzeug.utils.safe_join.
Removed most of the send_file tests, they're tested in Werkzeug.
In the file upload example, renamed the uploaded_file view to
download_file to avoid a common source of confusion.
2020-11-05 09:27:52 -08:00
Grey Li
6219702269
Add command switch tabs for Bash, CMD and Powershell with sphinx-tabs ( #3714 )
...
* Enable Sphinx extension sphinx-tabs
* Add command tabs for all export commands
* Add command tabs for all venv commands
Fix trim spaces
2020-10-15 14:08:37 -07:00
Leonardo Giordani
7b33b4a095
Simplified version of file-based database
2020-06-23 15:14:03 +01:00
Leonardo Giordani
ad89e0e0b9
Fixed trailing whitespace
2020-06-23 15:06:37 +01:00
Leonardo Giordani
2de5465058
Changed example DATABASE_URI values
2020-06-23 14:56:51 +01:00
Leonardo Giordani
002a8bdea8
Removed misleading DEBUG variable from examples
2020-06-21 09:29:45 +01:00
David Lord
1de5873d66
remove unused ref directives
...
replace page refs with doc directives
2020-04-04 12:57:14 -07:00
David Lord
f5038c4c39
f-strings everywhere
2020-04-04 12:10:00 -07:00
David Lord
c0c76bd651
remove Python 2 from docs
2020-04-04 12:05:44 -07:00
David Lord
a620f1c9c8
clean up config.from_file docs
2019-10-18 09:24:58 -07:00
pgjones
35627192e7
Support loading configuration from text files
...
TOML is a very popular format now, and is taking hold in the Python
ecosystem via pyproject.toml (among others). This allows toml config
files via,
app.config.from_file("config.toml", toml.loads)
it also allows for any other file format whereby there is a loader
that takes a string and returns a mapping.
2019-10-18 09:15:47 -07:00
David Lord
ba1fcd1887
use app.name as app.logger name
2019-07-01 14:56:18 -07:00
Paul Butler
931d62c892
Clarify documentation about how url_for uses configuration values ( #2759 )
2019-05-31 15:33:06 -04:00
David Lord
316caad5db
Merge branch '1.0.x'
2019-05-16 12:18:36 -07:00
A Brooks
651692c1a1
Fix various small spelling errors.
2019-05-16 11:50:10 -07:00
jordan bonser
342fbe6fe7
improve env vars config example
2019-05-16 08:48:34 -07:00
Martin Michlmayr
93f03eabbb
Fix typos in the documentation
2019-02-24 10:40:23 +00:00
David Lord
39a8efe484
Merge branch '1.0-maintenance'
2019-01-06 15:46:33 -08:00
garenchan
da19d8a914
Docs: fix some typos in config.rst
2019-01-06 14:45:10 -08:00
Douglas Thor
fad04d2547
document that Config.from_object uses object as-is
2019-01-06 14:34:05 -08:00
Aditya
fa50bdd372
Use https for external links wherever possible
2018-10-27 17:58:45 +05:30
Grey Li
95008cf43d
Add prefix for all commands in documentation ( #2877 )
...
* Add prefix for commands in docs
* Add prefix for commands in example's README
2018-09-09 17:41:56 +09:00
Vik
1b609c4dfe
Update config.rst
...
Fix Debug Default: By default Debug is only True when ENV is 'development'
2018-04-27 10:17:43 -07:00
Vik
c3baf3c4e6
Update config.rst
...
Fix Debug Default: By default Debug is only True when ENV is 'development'
2018-04-27 15:37:13 +01:00
David Lord
aaab1e46f2
add Response.max_cookie_size config
2018-04-10 11:17:18 -07:00
David Lord
4f8661e6e3
use subdomain arg in url_map.bind_to_environ
...
rename new subdomain test, parametrize
test allowing subdomains as well as ips
add subdomain_matching param to docs
add some references to docs
add version changed to create_url_adapter
2018-02-23 08:39:31 -08:00
David Lord
e431e8809d
clean up samesite docs
2018-01-23 15:11:50 -08:00
Fadhel_Chaabane
c65bdc0c9f
New Feature: Added Support for cookie's SameSite attribute.
2018-01-23 13:57:50 +00:00
David Lord
b2de7b49a7
clean up FLASK_ENV docs [ci skip]
2018-01-10 15:46:11 -08:00
Armin Ronacher
a1afc8f1a7
Add Support for FLASK_ENV ( #2570 )
...
This introduces environments to Flask
2018-01-06 17:07:56 +01:00
Grey Li
0011797bb1
Docs: Fixed typo
2017-12-14 11:08:33 +08:00
David Lord
c82582f336
mention that session signature checks max age
...
add expiration to cookie security docs
closes #2422
2017-08-01 08:28:32 -07:00
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