David Lord
6e1e3e03ca
check FLASK_SKIP_DOTENV in app.run
7 years ago
David Lord
b573a86977
trap key errors in debug, not all 400 errors
7 years ago
Jesse Roberts
3666a584fd
fix #2736 - allow lists to be passed through to response_class init
7 years ago
David Lord
80a9e0edf6
app.run is not lazy
...
use click.echo for banner messages
7 years ago
David Lord
1ed756a523
add Response.max_cookie_size config
7 years ago
David Lord
2411707492
rework context docs
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
David Lord
cf5525f98a
add test_cli_runner for testing app.cli commands
7 years ago
Josh Holland
575021c07b
Fix docs for test_request_context
...
Fixes #2627 .
7 years ago
David Lord
310fbfcf64
revert copyright year to project start
...
add copyright header to files
7 years ago
Fadhel_Chaabane
a1d9ebe4ab
New Feature: Added Support for cookie's SameSite attribute.
7 years ago
David Lord
87c2e121e0
clean up FLASK_ENV docs [ci skip]
7 years ago
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
7 years ago
Armin Ronacher
2433522d29
Add Support for FLASK_ENV ( #2570 )
...
This introduces environments to Flask
7 years ago
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
8 years ago
David Lord
491d331e6e
load env vars using python-dotenv
8 years ago
David Lord
9560f22bb6
clean up
8 years ago
Bijan Vakili
a417e41d27
Update documentation and regression tests to clarify that Flask.teardown_appcontext() only receives unhandled exceptions
8 years ago
David Lord
465922e5f1
clean up secret key docs
...
consistent key across docs and examples
consistent key across tests, set in conftest
8 years ago
David Lord
d63c2bc417
remove deprecated Flask.static_path
8 years ago
David Lord
9491bf8695
remove deprecated Flask.error_handlers
8 years ago
John Moutafis
e9386a7273
Remove deprecated request_globals_class _get and _set methods.
8 years ago
John Moutafis
75327c0a85
Remove deprecated init_jinja_globals.
8 years ago
David Lord
4fc48200a5
reconfigure the app from run command and method
...
extract templates_auto_reload to property
continues #1910
closes #1907
8 years ago
David Lord
fe1bf3c821
document the blueprint param too
8 years ago
David Lord
0f7b3a4f26
document `Flask.register_blueprint` arguments
...
closes #1809
8 years ago
grahamlutz
cf425403c8
Remove duplicate word from docstring
8 years ago
David Lord
235c830759
document inherited attributes for Flask and Blueprint
...
closes #480
[ci skip]
8 years ago
David Lord
b5f4c52150
don't cache error handlers for exception mro
...
closes #2267 , closes #1433
8 years ago
David Lord
859d9a9d5c
show nice message when registering error handler for unknown code
...
clean up error handler docs
closes #1837
8 years ago
David Lord
8f3563cf79
fix operator precedence
8 years ago
David Lord
42905b8a55
set description for trap as well as debug
...
test for key error description
8 years ago
David Lord
045dccaefb
make debugging bad key errors easier
...
* TRAP_BAD_REQUEST_ERRORS is enabled by default in debug mode
* BadRequestKeyError has the key in the description in debug mode
closes #382
8 years ago
David Lord
b9c8c9bad1
deprecate app session methods in favor of session_interface
...
ref #1182
8 years ago
David Lord
4a53840df0
APPLICATION_ROOT defaults to '/'
8 years ago
cerickson
361dba7e3a
removed dupe text from merge
8 years ago
cerickson
4f815015b8
Added support for generic HTTPException handlers on app and blueprints
...
Error handlers are now returned in order of blueprint:code, app:code,
blueprint:HTTPException, app:HTTPException, None
Corresponding tests also added.
Ref issue #941 , pr #1383 , #2082 , #2144
8 years ago
cerickson
637eae5489
Added support for generic HTTPException handlers on app and blueprints
...
Error handlers are now returned in order of blueprint:code, app:code,
blueprint:HTTPException, app:HTTPException, None
Corresponding tests also added.
Ref issue #941 , pr #1383 , #2082 , #2144
8 years ago
Florian Sachs
668061a5fc
Register errorhandlers for Exceptions
...
Allow a default errorhandler by registering
an errorhandler for HTTPException
tests included
8 years ago
Andrey Kislyuk
11d2eec3ac
Fix refactoring error in static_folder docstring ( #2310 )
8 years ago
Neil Grey
65fc888172
For Issue #2286 : Replaces references to unittest in the documentation with pytest
8 years ago
David Lord
501f043125
clean up preprocess_request docs
...
[ci skip]
8 years ago
David Lord
697f7b9365
refactor make_response to be easier to follow
...
* be explicit about how tuples are unpacked
* allow bytes for status value
* allow Headers for headers value
* use TypeError instead of ValueError
* errors are more descriptive
* document that view must not return None
* update documentation about return values
* test more response types
* test error messages
closes #1676
8 years ago
David Lord
13754b6d11
ensure error while opening session pops context
...
errors will be handled by the app error handlers
closes #1538 , closes #1528
8 years ago
David Lord
97e2cd0a5a
update changelog
...
move test next to existing test, rename
reword / reflow param doc
8 years ago
Sobolev Nikita
7481844c98
Fix typo in app.py ( #2248 )
8 years ago
jab
00d6e339ec
Change Flask.__init__ to accept two new keyword arguments, host_matching and static_host. ( #1560 )
...
This enables host_matching to be set properly by the time the constructor adds
the static route, and enables the static route to be properly associated with
the required host.
Previously, you could only enable host_matching once your app was already
instantiated (e.g. app.url_map.host_matching = True), but at that point
the constructor would have already added the static route without host matching
and an associated host, leaving the static route in a broken state.
Fixes #1559 .
8 years ago
Markus Unterwaditzer
c935eaceaf
Revert "Handle BaseExceptions ( #2222 )"
...
This reverts commit 1d4448abe3
.
8 years ago
Diggory Blake
12c49c75fb
Handle BaseExceptions
8 years ago