Commit graph

4739 commits

Author SHA1 Message Date
Grey Li
ca2bfbb0ac
Support returning list as JSON 2022-07-02 21:41:32 -07:00
David Lord
1626aff602
Merge branch '2.1.x' 2022-07-02 21:03:09 -07:00
David Lord
ab6a8b0330
relax routes cli match order 2022-07-02 21:02:00 -07:00
David Lord
c99f07d3e4
Merge pull request #4667 from pallets/remove-deprecated-code
Remove deprecated code
2022-07-01 14:14:37 -07:00
David Lord
c2810ffdd2
remove deprecated send_file argument names 2022-07-01 13:59:44 -07:00
David Lord
9e686d93b6
remove deprecated RequestContext.g 2022-07-01 13:44:31 -07:00
David Lord
96d39c87a8
Merge remote-tracking branch 'origin/2.1.x' 2022-07-01 13:32:50 -07:00
David Lord
6916697a98
Merge pull request #4666 from pallets/debug-context
new preserve context implementation
2022-07-01 12:35:24 -07:00
David Lord
84c722044a
new debug/test preserve context implementation 2022-07-01 12:01:44 -07:00
David Lord
57a95e82b7
Merge pull request #4665 from pallets/dependabot/github_actions/actions/setup-python-4
Bump actions/setup-python from 3 to 4
2022-07-01 09:45:43 -07:00
dependabot[bot]
2589328485
Bump actions/setup-python from 3 to 4
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-01 16:05:52 +00:00
David Lord
3635583ce2
Merge pull request #4662 from pallets/fix-run-skip
re-add flag to skip unguarded app.run from CLI
2022-06-29 21:21:52 -07:00
David Lord
5544d09477
re-add flag to skip unguarded app.run from CLI 2022-06-29 21:19:28 -07:00
David Lord
12d3f4fdf0
Merge pull request #4658 from pallets/docs-extension-dev
rewrite extension development docs
2022-06-28 16:38:09 -07:00
David Lord
b46bfcfa63
rewrite extension development docs 2022-06-28 16:28:33 -07:00
David Lord
0a01248b5c
Merge pull request #4654 from hankhank10/main 2022-06-28 06:27:24 -07:00
hankhank10
64ab59817d
show separate HTTP method route decorators in quickstart 2022-06-28 06:24:46 -07:00
David Lord
f6be300c42
Merge pull request #4652 from hankhank10/2.1.x 2022-06-23 06:00:33 -07:00
hankhank10
abcb6c9677
Update javascript.rst 2022-06-23 05:54:56 -07:00
David Lord
ab36542260
Merge pull request #4629 from pgjones/generate
allow view to return generator
2022-06-18 12:24:13 -07:00
pgjones
46433e9807
add generate_template and generate_template_string functions 2022-06-18 12:20:53 -07:00
pgjones
762382e436
view functions can return generators as responses directly 2022-06-18 11:25:05 -07:00
David Lord
7f2a0f4806
Merge pull request #4645 from kkirsche/patch-2
Use timezone aware datetime object on session
2022-06-17 12:05:19 -07:00
Kevin Kirsche
ed42e92928
session expiration datetime is UTC timezone-aware 2022-06-17 12:01:48 -07:00
David Lord
cec5f74110
Merge pull request #4647 from pallets/cli-app_context
with_appcontext lasts for the lifetime of the click context
2022-06-17 11:57:22 -07:00
David Lord
c9e000b9ce
with_appcontext lasts for the lifetime of the click context 2022-06-17 11:52:01 -07:00
David Lord
ae547270e9
Merge pull request #4646 from pallets/cli-app-env 2022-06-17 09:30:28 -07:00
David Lord
ab1fbef29a
prefer --app over FLASK_APP in docs 2022-06-17 09:26:26 -07:00
David Lord
99fa3c36ab
add --app, --env, --debug, and --env-file CLI options 2022-06-17 08:19:55 -07:00
David Lord
fe4003b3c9
Merge pull request #4642 from pallets/cli-nest
`FlaskGroup` can be nested
2022-06-15 14:17:45 -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
9c50b8fc1c
fix formatting 2022-06-13 06:08:45 -07:00
David Lord
97298e06fe
Merge branch '2.1.x' 2022-06-12 16:04:01 -07:00
David Lord
a9878c018b
remove mod_wsgi-standalone 2022-06-12 16:03:51 -07:00
David Lord
9139af1c62
Merge branch '2.1.x' 2022-06-12 14:10:51 -07:00
David Lord
b0a144d0c0
Merge pull request #4637 from pallets/docs-deploy
rewrite deployment docs
2022-06-12 14:03:55 -07:00
David Lord
2ea77c2782
rewrite deployment docs 2022-06-12 14:00:00 -07:00
David Lord
dcd1a1e0b6
Merge branch '2.1.x' 2022-06-11 14:16:51 -07:00
David Lord
9398630a8f
Merge pull request #4636 from pallets/docs-javascript 2022-06-11 14:03:01 -07:00
David Lord
2f3c87dcb8
rewrite javascript docs 2022-06-11 13:44:46 -07:00
David Lord
ebc0d30dd1
Merge pull request #4630 from mirskiy/docs-mention-relative
Update send_from_directory docstring to mention relative root for `directory`
2022-06-09 09:24:26 -07:00
Dan Mirsky
9934528c8f Update send_from_directory docstring 2022-06-09 09:12:10 -07:00
David Lord
6f6e3289da
remove javascript fetch polyfill 2022-06-08 07:30:29 -07:00
David Lord
db3187fd7a
Merge pull request #4624 from pallets/view-init-scope
add `View.init_every_request` attribute
2022-06-06 15:52:48 -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
aab1d9935e
Merge pull request #4621 from pallets/deprecate-before_first_request
deprecate before_first_request
2022-06-06 10:11:00 -07:00
David Lord
96c97dec09
deprecate before_first_request 2022-06-06 10:04:05 -07:00