Armin Ronacher
4a1acc8b5f
Some small doc fixes
2020-07-08 15:53:43 +02:00
Joshua Bronson
7ba35c4d4f
Restore support for using pathlib.Path for static_folder.
...
* No longer causes AttributeError: 'PosixPath' object has no
attribute 'rstrip'.
* This was broken by e6178fe489
which was released in 1.1.2.
* Add a regression test that now passes.
See #3557 .
2020-07-06 08:55:19 -04:00
jackwardell
846ee2c62e
add assert message for errorhandler exception type
2020-04-16 10:49:42 -07:00
David Lord
ff2f71379b
use ast to parse FLASK_APP
...
enables keyword arguments to factory functions
2020-04-07 17:54:51 -07:00
David Lord
fcac7f11cf
deprecate passing script_info to factory
2020-04-07 15:54:36 -07:00
David Lord
756902cca1
update json docs
2020-04-07 13:37:14 -07:00
David Lord
8b5f760b72
deprecate JSON encoding options
...
make consistent with built-in json module
2020-04-07 12:32:27 -07:00
David Lord
c43edfc7c0
remove simplejson
...
- remove encoding detection backport, json.loads supports it directly
- use str.translate instead of multiple str.replace
2020-04-07 09:55:39 -07:00
David Lord
024f0d384c
move package metadata to setup.cfg
2020-04-04 14:50:21 -07:00
David Lord
171aabc87d
remove unused ref directives
...
replace page refs with doc directives
2020-04-04 12:57:14 -07:00
David Lord
f2f027d1fb
remove unused module docstrings
2020-04-04 12:28:08 -07:00
David Lord
2ae740dd49
f-strings everywhere
2020-04-04 12:10:00 -07:00
David Lord
524fd0bc8c
apply pyupgrade
2020-04-04 12:10:00 -07:00
David Lord
57d628ca74
remove more compat code
2020-04-04 12:10:00 -07:00
David Lord
662c245795
remove _compat module
2020-04-04 12:10:00 -07:00
David Lord
1263d3bd14
remove deprecated code
2020-04-04 12:10:00 -07:00
David Lord
a0a61acdec
drop support for Python 2.7 and 3.5
2020-04-04 12:09:55 -07:00
David Lord
7673835b3d
remove Python 2 from docs
2020-04-04 12:05:44 -07:00
David Lord
96b4dcafc3
Merge branch '1.1.x'
2020-04-03 10:25:51 -07:00
David Lord
93dd1709d0
release version 1.1.2
2020-04-03 10:10:38 -07:00
David Lord
4024a4a89c
update deprecation versions
2020-04-03 10:02:40 -07:00
Jeenu Viswambharan
4548e00dba
clarify static_folder is relative to root_path
2020-04-03 07:28:44 -07:00
Shanavas M
e047dd6a32
Update deprecated for config.from_json
2020-03-18 12:37:51 +05:30
kevinanew
d5f88dafaf
refactor variable choices into if blocks
2020-03-11 07:24:38 -07:00
David Lord
64ba43411f
Merge remote-tracking branch 'origin/1.1.x'
2020-02-15 10:40:32 -08:00
Frost Ming
e6178fe489
Handle different sep across os
2020-02-12 13:17:03 +08:00
frostming
d4076cf07c
strip the ending slash for static_url_path
2020-02-10 18:19:25 -08:00
David Lord
bcde664f9a
cli checks for cryptography library
2020-02-10 17:34:19 -08:00
Marc Hernandez Cabot
5da342e4dd
fix docstring and remove redundant parentheses
2020-02-10 17:03:52 -08:00
raymond-devries
900fa2f795
Feature request #3445 .
2020-02-10 13:09:53 -08:00
David Lord
8d5234e4c7
next version 1.2.0
2020-02-09 15:20:23 -08:00
Adrian
38eb5d3b49
Remove comment about extension backwards compat
...
0.7 was a long time ago; there's no reason for extension to supports such old versions.
2019-11-25 00:38:50 +01:00
Grey Li
ef434ea998
Replace old pocoo links everywhere
...
pocco.org -> palletsprojects.com
2019-11-19 09:32:35 -08:00
David Lord
980168d084
send_file doesn't allow StringIO
2019-11-19 08:52:12 -08:00
David Lord
0586188f22
Merge pull request #3425 from homeworkprod/patch-1
...
Update `versionadded` for `Config.from_file`
2019-11-18 18:23:39 -08:00
David Lord
a671e47921
rewrite the development server docs
2019-11-18 18:02:12 -08:00
David Lord
240a11052b
lazy load app on reload only
2019-11-18 17:54:46 -08:00
Jochen Kupperschmidt
1feb69d595
Update versionadded for Config.from_file
...
According to the change log at https://github.com/pallets/flask/blob/master/CHANGES.rst , the release `Config.from_file` will be published with is now 2.0.0 rather than 1.2.0.
2019-11-13 23:13:56 +01:00
David Lord
aac0f585b9
clean up config.from_file docs
2019-10-18 09:24:58 -07:00
pgjones
829aa65e64
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
Doron Horwitz
0c0b31a789
get_cookie_name in SessionInterface for easier overriding in SecureCookieSessionInterface
2019-10-12 19:12:27 -07:00
Arnav Borborah
553b26f857
Fix typo in pop documentation
2019-08-15 21:05:33 -04:00
Chris Zimmerman
353d891561
fixed typo in logging docstring ( #3328 )
...
* fixed typo in logging docstring
* second typo fix
2019-08-09 14:47:17 -04:00
linchiwei123
a0a49e1c9e
clean up outdated code
2019-07-24 15:50:37 +08:00
David Lord
ded3d642a7
pass sys.argv to flask cli
2019-07-10 12:44:04 -07:00
David Lord
c478e5d52f
pass sys.argv to flask cli
2019-07-10 11:45:20 -07:00
David Lord
ffc68840f8
release version 1.1.1
2019-07-08 10:58:12 -07:00
David Lord
1617202d91
restore and deprecate json_available
2019-07-08 10:26:12 -07:00
David Lord
1b4ace9ba5
release version 1.1.0
2019-07-04 16:04:42 -07:00
David Lord
2844fdb82e
Merge branch '1.0.x'
2019-07-03 12:23:16 -07:00