David Lord
a4f0f19796
don't push app context for test client json
2019-05-17 09:00:08 -07:00
DamianSkrzypczak
e2f4b53396
Fix dev-server warning message readability ( #3168 )
2019-05-16 19:03:08 -07:00
Michael E. Karpeles
ac78da0bb0
removed unused reference to url_join
2019-05-16 17:47:14 -07:00
David Lord
b765e0db50
Merge pull request #3196 from jakseb/fix-docs-paren
...
Fix misplaced paren in docs
2019-05-16 08:28:58 -07:00
RyanSquared
d23b160e6d
helpers.py: Fix docs of url_for(..., _external=True)
2019-05-16 06:54:20 -07:00
Sebastian Jakubiak
205c943ded
Fix misplaced paren in docs
2019-05-13 22:22:40 +02:00
David Lord
662ce2151d
add changelog for GH-2986
2019-01-07 09:52:54 -08:00
Jimmy Jia
b92b2e6c74
Do not handle RoutingExceptions with app error handlers
2019-01-07 09:01:37 -08:00
garenchan
40118e785f
Make sure the attachment filename is text type.
...
If attachment filename is bytes type and contains non-ascii coded bytes,
then the following ASCII encoding process will trigger
UnicodeDecodeError exception.
Fix issue #2933 .
2019-01-07 07:17:33 -08:00
David Lord
a0ccc47780
clean up flask --version code
2019-01-06 16:24:05 -08:00
Dilan Coss
3fd51c65fb
add werkzeug to flask --version
2019-01-06 16:11:03 -08:00
Douglas Thor
830c77cb44
document that Config.from_object uses object as-is
2019-01-06 14:34:05 -08:00
xtreak
b85425ac1b
remove syntax warning from docstring
2019-01-06 10:17:58 -08:00
xtreak
e4ebbd3f5b
Fix DeprecationWarning on collections import
2019-01-06 10:04:00 -08:00
Rohan Talip
02df042416
Corrected a typo in a docstring: "Help object" --> "Helper object"
2019-01-06 09:10:28 -08:00
Grey Li
d0ceb16be9
Use imperative tense for CLI help text
2019-01-06 06:31:57 -08:00
David Lord
49efc44233
clear KeyError in production for Werkzeug 0.15
2019-01-05 12:49:59 -08:00
garenchan
c38499bbf2
ignore colon with slash when split app_import_path
...
Flask currently supports importing app through a combination of module
path and app variable name, such as '/usr/app.py:my_app'. When the
module path contains a colon, it will conflict with this import way and
a `flask.cli.NoAppException` will be raised.
A file path on a Windows system may contain a colon followed by a slash.
So we solved this problem on Windows by ignoring the colon followed by a
slash when we split app_import_path.
Fix issue #2961 .
2018-10-24 23:47:41 +08:00
ThiefMaster
50227f0954
Add option to not overwrite debug flag in cli
...
This is mainly intended for custom CLIs that may load a config file
which already sets the debug flag and does not make use of the `FLASK_*`
env vars at all.
2018-06-14 13:25:05 +02:00
David Lord
b51ab3ff2c
encode filenames as ascii instead of latin-1
...
latin-1 is allowed by pep3333, but that breaks gunicorn
2018-05-28 06:36:47 -07:00
Briehan Lombaard
a913b4dafd
SSLContext was added in Python 2.7.9
2018-05-17 06:18:42 -07:00
David Lord
939c77a39a
Bump version number to 1.0.3.dev
2018-05-02 07:16:58 -07:00
David Lord
dfd3619d6f
Bump version number to 1.0.2
2018-05-02 07:16:14 -07:00
Grey Li
b4e092600d
Check whether exist registered routes
2018-05-02 06:06:15 -07:00
David Lord
b21b4d1608
add more merge cases
2018-05-01 13:29:48 -07:00
Hsiaoming Yang
f7a3bdc6db
Fix blueprint route for ""
2018-05-01 14:35:55 +09:00
David Lord
c9ab9ef5db
Bump version number to 1.0.2.dev
2018-04-29 19:09:23 -07:00
David Lord
a15795c99e
Bump version number to 1.0.1
2018-04-29 19:08:16 -07:00
David Lord
6e1e3e03ca
check FLASK_SKIP_DOTENV in app.run
2018-04-29 18:45:50 -07:00
David Lord
f13870731c
allow empty prefix and no lead slash in bp route
2018-04-29 15:32:12 -07:00
David Lord
5965cb7e1c
rename to FLASK_SKIP_DOTENV, add docs, test
2018-04-29 14:20:17 -07:00
Hsiaoming Yang
bac5d6b9f4
Use FLASK_DONT_LOAD_ENV flag to disable load .env
2018-04-28 07:19:06 -07:00
David Lord
4c8ec8f555
Merge pull request #2739 from pallets/2735-abort-debug
...
Only trap key errors by default in debug, not all BadRequest errors
2018-04-28 07:01:42 -07:00
David Lord
b573a86977
trap key errors in debug, not all 400 errors
2018-04-28 06:51:08 -07:00
David Lord
4d0cdf95e6
merge slashes between blueprint prefix and rule
2018-04-27 12:40:06 -07:00
Jesse Roberts
3666a584fd
fix #2736 - allow lists to be passed through to response_class init
2018-04-27 10:49:56 -07:00
ThiefMaster
6663bf1f7d
Fix registering partials as view functions
2018-04-27 13:44:07 +02:00
David Lord
d60f213fdb
Bump version number to 1.0.1.dev
2018-04-26 12:31:25 -07:00
David Lord
291f3c338c
Bump version number to 1.0
2018-04-26 12:25:54 -07:00
Nick Pope
eaedb9320c
Fix index example for TaggedJSONSerializer.register()
...
Made the example use a keyword, rather than a positional argument, as
the intent here is to show how to insert a tag with higher precedence.
As a positional argument, this would have been passed to ``force``
instead of ``index``.
2018-04-19 14:16:11 +01:00
Nick Pope
fc6a1d9354
Fix default index for TaggedJSONSerializer.register()
...
Change the default value of ``index`` to ``None`` in ``register()`` so
that it is possible to insert a new tag as the penultimate item in the
order list.
2018-04-19 14:16:11 +01:00
David Lord
e102e5cb33
Merge pull request #2707 from rochacbruno/lazy_loader_message
...
Add a message `Serving Flask app (module "app.py" will be lazily loaded)` to `flask run` related to #2706
2018-04-18 13:45:35 -07:00
David Lord
80a9e0edf6
app.run is not lazy
...
use click.echo for banner messages
2018-04-18 13:39:55 -07:00
David Lord
be46acb871
add changelog for docs theme and tutorial
2018-04-18 13:21:16 -07:00
David Lord
49a38ed999
use theme provided by pallets-sphinx-themes
2018-04-18 12:05:31 -07:00
Bruno Rocha
8f5168cb31
Add explicit (lazy loading) message to flask run related to #2706
2018-04-18 13:42:46 -03:00
David Lord
1ed756a523
add Response.max_cookie_size config
2018-04-10 11:17:18 -07:00
David Lord
ab4142215d
detect UTF encodings when loading json
2018-04-10 09:34:59 -07:00
fphonor
171eb28c95
get_json separate cache depending on silent arg
2018-04-09 02:52:40 -07:00
David Lord
2411707492
rework context docs
2018-04-09 00:02:38 -07:00