garenchan
9bc87d09c6
Cache return values to avoid repeated function calls.
6 years ago
moyosore
673772cac9
Fixed typo in app.py
6 years ago
garenchan
aa7e15dcba
Reduce unnecessary function calls.
...
When propagate exceptions, the function call of "_find_error_handler"
makes no sense.
6 years ago
Gabriel Saldanha
d5c465ddf4
🎨 Use itervalues instead of iteritems
7 years ago
Gabriel Saldanha
d362399e7e
🔥 Remove code supposed to be removed at v1.0
7 years ago
Grey Li
f036308442
Add cli tips for .flaskenv
7 years ago
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.
7 years ago
Suraj Chafle
076dddb2e1
Fixed 2823
7 years ago
David Lord
b51ab3ff2c
encode filenames as ascii instead of latin-1
...
latin-1 is allowed by pep3333, but that breaks gunicorn
7 years ago
Briehan Lombaard
a913b4dafd
SSLContext was added in Python 2.7.9
7 years ago
David Lord
939c77a39a
Bump version number to 1.0.3.dev
7 years ago
David Lord
dfd3619d6f
Bump version number to 1.0.2
7 years ago
Grey Li
b4e092600d
Check whether exist registered routes
7 years ago
David Lord
b21b4d1608
add more merge cases
7 years ago
Hsiaoming Yang
f7a3bdc6db
Fix blueprint route for ""
7 years ago
David Lord
c9ab9ef5db
Bump version number to 1.0.2.dev
7 years ago
David Lord
a15795c99e
Bump version number to 1.0.1
7 years ago
David Lord
6e1e3e03ca
check FLASK_SKIP_DOTENV in app.run
7 years ago
David Lord
e8fd06a0a7
Bump version number to 0.12.5.dev
7 years ago
David Lord
5beb3be536
Bump version number to 0.12.4
7 years ago
David Lord
f13870731c
allow empty prefix and no lead slash in bp route
7 years ago
David Lord
5965cb7e1c
rename to FLASK_SKIP_DOTENV, add docs, test
7 years ago
Hsiaoming Yang
bac5d6b9f4
Use FLASK_DONT_LOAD_ENV flag to disable load .env
7 years ago
David Lord
b573a86977
trap key errors in debug, not all 400 errors
7 years ago
David Lord
4d0cdf95e6
merge slashes between blueprint prefix and rule
7 years ago
Jesse Roberts
3666a584fd
fix #2736 - allow lists to be passed through to response_class init
7 years ago
ThiefMaster
6663bf1f7d
Fix registering partials as view functions
7 years ago
David Lord
d60f213fdb
Bump version number to 1.0.1.dev
7 years ago
David Lord
79d3ff9baa
Bump version number to 1.1.dev
7 years ago
David Lord
46a71071ed
Bump version number to 1.0
7 years ago
David Lord
291f3c338c
Bump version number to 1.0
7 years ago
David Lord
23047a71fd
Bump version number to 0.12.4.dev
7 years ago
David Lord
1a9e58e8c9
Bump version number to 0.12.3
7 years ago
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``.
7 years ago
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.
7 years ago
David Lord
80a9e0edf6
app.run is not lazy
...
use click.echo for banner messages
7 years ago
David Lord
be46acb871
add changelog for docs theme and tutorial
7 years ago
David Lord
49a38ed999
use theme provided by pallets-sphinx-themes
7 years ago
Bruno Rocha
8f5168cb31
Add explicit `(lazy loading)` message to `flask run` related to #2706
7 years ago
David Lord
0e1e9a04aa
detect UTF encodings when loading json
7 years ago
David Lord
18c9db4794
be smarter about adding ".cli" to reloader command
...
python -m flask.cli raises an import warning on > 2.6
it's only needed on 2.6, "flask" works otherwise
7 years ago
David Lord
1ed756a523
add Response.max_cookie_size config
7 years ago
David Lord
ab4142215d
detect UTF encodings when loading json
7 years ago
fphonor
171eb28c95
get_json separate cache depending on silent arg
7 years ago
David Lord
2411707492
rework context docs
7 years ago
Hsiaoming Yang
08e61ea200
Add tip for dotenv
7 years ago
David Lord
401423df06
only strip one slash when registering blueprint
...
add test and changelog
7 years ago
zcchen
0887245bfd
Add re.sub for blueprint add_url_rule handler, prevent '/a//b/'(blueprint.url_prefix='/a/' and the route is '/b/') happened.
7 years ago
David Lord
82f0d120de
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
7 years ago
Armin Ronacher
8cec2010c0
Do not enable subdomain matching by default
...
Updated tests for new subdomain matching
Added a test to validate matching behavior
7 years ago