Scott Crosby
55ad09c902
Move python properties to decorator syntax
2019-05-31 10:53:30 -05:00
David Lord
ed9ab2d3b6
strip static url trailing slash at assignment
2019-05-25 11:18:40 -07:00
Anthony Plunkett
ec1ccd7530
Add Blueprint level cli command registration
...
Implements #1357 .
Adds ability to register click cli commands onto blueprint.
2019-05-24 14:43:29 -07:00
pgjones
7bf8366970
Allow dictionary return values as JSON
...
This supports an increasingly common usecase whereby JSON is the
primary response (rather than a templated string). Given Flask has a
short syntax for HTML reponses, it seems fitting that it should also
do so for JSON responses. In practice it allows,
@app.route("/")
def index():
return {
"api_stuff": "values",
}
2019-05-24 09:48:55 -07:00
vorelq
e1cc16f8be
Fix 0 port value being overriden by default
...
By explicitly comparing port value with None,
instead of using its bool() value.
2019-05-19 11:36:47 -07:00
shidenggui
2a2a11b063
allow customizing url map class
2019-05-18 21:50:56 -07:00
Frankie Liu
2039e2e3b6
Remove ending slash from static_url_path
2019-05-18 21:23:14 -07:00
David Lord
957f48a98d
use dict literal syntax for jinja_options
...
clarify docs about when jinja_options can be modified
2019-05-18 08:35:47 -07:00
EtiennePelletier
af3c24c7df
Make jinja_options a dict rather than ImmutaleDict
...
This allows changing jinja environment options from the flask app:
>>> app.jinja_options['undefined'] = jinja2.ChainableUndefined
2019-05-18 05:31:55 -07:00
David Baumgold
025589ee76
Reformat with black
...
https://github.com/python/black
2019-05-06 16:28:58 -04:00
David Lord
a74864ec22
Merge remote-tracking branch 'origin/1.0-maintenance'
2019-01-07 10:00:10 -08: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
David Lord
3b45b82ec2
Merge branch '1.0-maintenance'
2019-01-06 10:36:54 -08:00
xtreak
b85425ac1b
remove syntax warning from docstring
2019-01-06 10:17:58 -08:00
David Lord
f7d50d4b67
Merge branch '1.0-maintenance'
2019-01-05 15:12:17 -08:00
David Lord
49efc44233
clear KeyError in production for Werkzeug 0.15
2019-01-05 12:49:59 -08:00
moyosore
673772cac9
Fixed typo in app.py
2018-10-13 20:57:41 +02:00
garenchan
aa7e15dcba
Reduce unnecessary function calls.
...
When propagate exceptions, the function call of "_find_error_handler"
makes no sense.
2018-09-23 16:40:35 +08:00
David Lord
6e1e3e03ca
check FLASK_SKIP_DOTENV in app.run
2018-04-29 18:45:50 -07:00
David Lord
b573a86977
trap key errors in debug, not all 400 errors
2018-04-28 06:51:08 -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
David Lord
80a9e0edf6
app.run is not lazy
...
use click.echo for banner messages
2018-04-18 13:39:55 -07:00
David Lord
1ed756a523
add Response.max_cookie_size config
2018-04-10 11:17:18 -07:00
David Lord
2411707492
rework context docs
2018-04-09 00:02:38 -07:00
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
2018-02-23 08:39:31 -08:00
Armin Ronacher
8cec2010c0
Do not enable subdomain matching by default
...
Updated tests for new subdomain matching
Added a test to validate matching behavior
2018-02-23 07:53:27 -08:00
David Lord
cf5525f98a
add test_cli_runner for testing app.cli commands
2018-02-19 15:34:46 -08:00
Josh Holland
575021c07b
Fix docs for test_request_context
...
Fixes #2627 .
2018-02-12 22:26:02 +00:00
David Lord
310fbfcf64
revert copyright year to project start
...
add copyright header to files
2018-02-08 12:43:30 -08:00
Fadhel_Chaabane
a1d9ebe4ab
New Feature: Added Support for cookie's SameSite attribute.
2018-01-23 13:57:50 +00:00
David Lord
87c2e121e0
clean up FLASK_ENV docs [ci skip]
2018-01-10 15:46:11 -08:00
David Lord
3738f7ff99
match run command behavior in app.run
...
output extra server information
handle env var changed by load_dotenv
enable threading by default
2018-01-10 12:02:13 -08:00
Armin Ronacher
2433522d29
Add Support for FLASK_ENV ( #2570 )
...
This introduces environments to Flask
2018-01-06 17:07:56 +01:00
David Lord
66b1b752da
simplify logging configuration
...
single default handler and formatter
don't remove handlers
configure level once using setLevel
document logging
reorganize logging tests
2017-07-31 12:49:03 -07:00
David Lord
491d331e6e
load env vars using python-dotenv
2017-07-16 13:37:51 -07:00
David Lord
9560f22bb6
clean up
2017-07-10 07:10:47 -07:00
Bijan Vakili
a417e41d27
Update documentation and regression tests to clarify that Flask.teardown_appcontext() only receives unhandled exceptions
2017-07-07 17:34:44 -07:00
David Lord
465922e5f1
clean up secret key docs
...
consistent key across docs and examples
consistent key across tests, set in conftest
2017-06-28 07:58:06 -07:00
David Lord
d63c2bc417
remove deprecated Flask.static_path
2017-06-26 07:45:29 -07:00
David Lord
9491bf8695
remove deprecated Flask.error_handlers
2017-06-26 07:39:35 -07:00
John Moutafis
e9386a7273
Remove deprecated request_globals_class _get and _set methods.
2017-06-26 11:48:29 +03:00
John Moutafis
75327c0a85
Remove deprecated init_jinja_globals.
2017-06-23 17:53:38 +03:00
David Lord
4fc48200a5
reconfigure the app from run command and method
...
extract templates_auto_reload to property
continues #1910
closes #1907
2017-06-14 12:08:25 -07:00
David Lord
9e39c506e0
Merge branch 'master' into reload_templates_run_debug
2017-06-14 09:58:33 -07:00
David Lord
fe1bf3c821
document the blueprint param too
2017-06-14 07:26:48 -07:00
David Lord
0f7b3a4f26
document Flask.register_blueprint arguments
...
closes #1809
2017-06-14 07:16:55 -07:00
grahamlutz
cf425403c8
Remove duplicate word from docstring
2017-06-10 14:53:40 +02:00
David Lord
235c830759
document inherited attributes for Flask and Blueprint
...
closes #480
[ci skip]
2017-06-06 07:51:52 -07:00
David Lord
b5f4c52150
don't cache error handlers for exception mro
...
closes #2267 , closes #1433
2017-06-05 06:24:08 -07:00