Commit graph

274 commits

Author SHA1 Message Date
David Lord
99fa3c36ab
add --app, --env, --debug, and --env-file CLI options 2022-06-17 08:19:55 -07:00
David Lord
aa801c431a
FlaskGroup can be nested 2022-06-15 14:09:56 -07:00
David Lord
4f03a769d4
edit some cli messages
dev server message doesn't show one of the lines in grey
app.run message uses click.secho instead of warning
2022-06-15 12:45:22 -07:00
David Lord
dcd1a1e0b6
Merge branch '2.1.x' 2022-06-11 14:16:51 -07:00
Dan Mirsky
9934528c8f Update send_from_directory docstring 2022-06-09 09:12:10 -07:00
David Lord
45174bf9a1
use __init_subclass__ instead of metaclass for MethodView 2022-06-06 15:48:36 -07:00
David Lord
bab5a65e6e
rewrite class-based view docs 2022-06-06 15:33:46 -07:00
David Lord
6e23239567
add View.init_every_request attribute 2022-06-06 15:11:01 -07:00
David Lord
96c97dec09
deprecate before_first_request 2022-06-06 10:04:05 -07:00
David Lord
7a2d5fb6df
Merge branch '2.1.x' 2022-06-06 09:30:30 -07:00
David Lord
3ba37d2afe
fix uninstalled package tests under tox 2022-06-06 08:24:05 -07:00
Evgeny Prigorodov
88bcf78439
instance_path for namespace packages uses path closest to submodule 2022-06-06 08:16:00 -07:00
David Lord
fb89745408
Merge pull request #4579 from lecovi/docs/#4574-test-typing 2022-06-05 15:54:08 -07:00
David Lord
3351a8677e
add errorhandler type check tests 2022-06-05 15:44:28 -07:00
David Lord
81be290ec8
view function is actually type checked 2022-06-05 15:43:53 -07:00
Numerlor
72cae9ce2b
Remove extra backtick 2022-06-05 02:57:49 +02:00
David Lord
9e2e1de2fc
Merge branch '2.1.x' 2022-06-01 11:27:08 -07:00
David Lord
61f62e6005
access flask types through namespace alias 2022-05-23 13:21:22 -07:00
Justin Bull
8cb950671f
use bound typevar to accept Flask and Werkzeug Response classes 2022-05-23 13:21:22 -07:00
David Lord
a4f63e0390
start version 2.1.3 2022-05-23 10:54:02 -07:00
David Lord
1888df3440
Merge remote-tracking branch 'origin/2.1.x' 2022-05-23 10:08:52 -07:00
David Lord
1232d69860
inline conditional imports for cli behaviors 2022-05-23 09:46:20 -07:00
David Lord
a406c297aa
apply setupmethod consistently 2022-05-23 09:09:12 -07:00
Chris Hallacy
eb36135cfe
always warn on blueprint setupmethod after registration 2022-05-23 09:09:12 -07:00
David Lord
69e2300608
use app.url_for as template global
avoid extra call from helpers.url_for
update changelog for method moves
2022-05-15 08:48:30 -07:00
David Lord
39f9363296
finish moving url_for to app
move entire implementation to app
make special build args actual keyword-only args
handle no app context in method
mention other config in server_name error
implicit external with scheme
use adapter.build url_scheme argument
rewrite documentation
2022-05-14 12:46:01 -07:00
Ivan Sushkov
92acd05d9b
add url_for method to app 2022-05-14 12:45:18 -07:00
David Lord
fac630379d
update app.redirect docs 2022-05-12 16:33:40 -07:00
dzcode
eb5dd9f5ef
add aborter object to app 2022-05-12 13:29:54 -07:00
David Lord
a25d234cdd
Merge remote-tracking branch 'origin/2.1.x' 2022-05-11 09:39:26 -07:00
Tim Hoagland
fdab801fbb
add redirect method to app 2022-05-10 11:02:24 -07:00
Stanislav Bushuev
a74e266474
skip coverage for TYPE_CHECKING 2022-05-03 12:11:55 -06:00
Qingpeng Li
1e5dd43022
refactor error checks in register_error_handler
Co-authored-by: David Lord <davidism@gmail.com>
2022-05-03 11:52:11 -06:00
DailyDreaming
8ddbad9ccd Fix linting error.
Suppress mypy.

Suppress mypy error.

Suppress mypy error.
2022-05-02 09:11:07 -07:00
David Lord
7b28a9057d
release version 2.1.2 2022-04-28 10:44:02 -07:00
David Lord
cb4f742543
Merge branch '2.1.x' 2022-04-24 10:14:53 -07:00
James Warne
5050a18a00
evaluate --cert before --key 2022-04-24 10:01:40 -07:00
Rafael Zimmer
eede1a3685
fix annotation for json.loads 2022-04-24 09:53:10 -07:00
David Lord
69f71b4d94
start version 2.1.2 2022-04-24 09:50:55 -07:00
David Lord
c6f297719e
release version 2.1.1 2022-03-30 14:35:07 -07:00
David Lord
5589915b38
start version 2.1.1 2022-03-30 14:01:10 -07:00
David Lord
b109b092a9
start version 2.2.0 2022-03-28 12:17:25 -07:00
David Lord
7d264d7dc5
release version 2.1.0 2022-03-28 12:09:35 -07:00
David Lord
cd4ab005a9
fix typing 2022-03-28 12:09:35 -07:00
David Lord
41aaaf7fa0
clean up unused function from prefixed_env pr 2022-03-25 12:24:31 -07:00
David Lord
4eb5e9455b
more from_prefixed_env features
* support nested dict access with "__" separator
* don't specify separator in prefix
* catch exceptions for any loads function
2022-03-25 11:54:45 -07:00
pgjones
08a283af5e
Allow loading of environment variables into the config
This new method will pick out any environment variables with a certain
prefix and place them into the config named without the prefix. This
makes it easy to use environment variables to configure the app as is
now more popular than when Flask started.

The prefix should ensure that the environment isn't polluted and the
config isn't polluted by environment variables.

I've followed the dynaconf convention of trying to parse the
environment variable and then falling back to the raw value if parsing
fails.
2022-03-25 11:54:03 -07:00
David Lord
81c7ff7f8d
update tests for relative redirects 2022-03-25 11:48:26 -07:00
David Lord
ce7b884b73
Merge pull request #4492 from pallets/debug-messages
update some debug message behavior
2022-03-23 09:18:20 -07:00
David Lord
6578b493c8
better override for json BadRequest error 2022-03-23 09:13:45 -07:00