Commit graph

349 commits

Author SHA1 Message Date
David Lord
2beedabaaf
add HTTPS support for flask run command 2018-01-23 10:03:53 -08:00
David Lord
06f96df67e
silence ENOTDIR when loading config file 2018-01-05 07:40:51 -08:00
David Lord
28d0f66c1f
remove tests and docs for python 2.6 and 3.3 2017-12-16 07:00:00 -08:00
Adrian Moennich
eb1c2faf9f Merge remote-tracking branch 'upstream/0.12-maintenance' 2017-11-25 00:44:07 +01:00
ThiefMaster
c52e1b7388 Fix ValueError for some invalid Range requests
fixes #2526
2017-11-25 00:37:49 +01:00
Armin Ronacher
2ef2000a39
Enable threads by default for the dev server (#2529)
Enable threads by default for dev server
2017-11-25 00:17:09 +01:00
Caratpine
2f57a0b917
Blueprint view function name should not contain dots 2017-10-09 08:12:34 -07:00
David Lord
ed1f604727 Update CHANGES 2017-07-31 13:58:50 -07: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
a89bdb3395
prefer the url's scheme over the kwarg
tabs -> spaces
add test
add changelog
2017-07-29 13:03:08 -07:00
David Lord
491d331e6e
load env vars using python-dotenv 2017-07-16 13:37:51 -07:00
David Lord
fb845b9032
allow local packages in FLASK_APP
don't require .py extension in FLASK_APP
add tests for nested package loading
parametrize cli loading tests
2017-07-14 19:49:05 -07:00
David Lord
59f7966e31 support passing environ to test client (#2412)
closes #2411
2017-07-13 08:42:53 -07:00
David Lord
5bc0d15359
un-deprecate request.json 2017-06-26 09:34:26 -07:00
David Lord
715a9a3e7b
remove deprecated flask.ext 2017-06-26 08:47:28 -07:00
David Lord
89c87240b6
changelog for deprecations 2017-06-26 08:07:54 -07:00
Eugene M. Kim
5b38fe2fbe Merge branch 'master' of github.com:pallets/flask into json_encode_non_utc_datetimes 2017-06-14 13:11:53 -07:00
Eugene M. Kim
d41e2e6a5d Correctly encode aware, non-UTC datetime objects
http_date() requires timetuple in UTC, but JSONEncoder.default() was
passing a local timetuple instead.
2017-06-14 12:40:53 -07: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
b5f4c52150
don't cache error handlers for exception mro
closes #2267, closes #1433
2017-06-05 06:24:08 -07:00
David Lord
e97253e4c1
clean up JSON code and docs 2017-06-04 11:44:00 -07:00
David Lord
dbc70c9274
Merge remote-tracking branch 'remotes/origin/master' into json-mixin 2017-06-04 09:42:39 -07:00
David Lord
6637e20174
only open session if request hasn't been pushed yet
closes #1348
2017-06-02 11:12:18 -07:00
David Lord
5e1ced3c05
make session serializer extensible
support serializing 1-item dicts with tag as key
refactor serializer into flask.json.tag module
continues #1452, closes #1438, closes #1908
2017-06-01 22:47:23 -07:00
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
2017-05-29 19:08:25 -07:00
David Lord
4a53840df0
APPLICATION_ROOT defaults to '/' 2017-05-28 14:08:53 -07:00
David Lord
399ac3c54f
update changelog
[ci skip]
2017-05-28 11:52:01 -07:00
Kenneth Reitz
cf926b8e73 Update CHANGES 2017-05-25 17:57:55 -04:00
Kenneth Reitz
31174fecd2 resolve merge conflicts 2017-05-25 17:21:32 -04:00
David Lord
964c5c5aca
add changelog
[ci skip]
2017-05-23 16:24:07 -07:00
David Lord
01ddf54b87
adjust for loop style 2017-05-22 16:12:23 -07:00
David Lord
7ecdbcfa2b
show error if multiple Flask instances are detected
add changelog
2017-05-22 15:48:08 -07:00
Markus Unterwaditzer
a558d47ee2 Merge branch '0.12-maintenance' 2017-05-16 08:40:31 +02:00
Markus Unterwaditzer
bb83ae9843 Release 0.12.2 2017-05-16 08:39:28 +02:00
Markus Unterwaditzer
dc9c5ef65a Merge branch '0.12-maintenance' 2017-05-16 08:34:53 +02:00
David Lord
f7c35bf0d5 safe_join on Windows uses posixpath
fixes #2033
closes #2059
2017-05-16 08:34:37 +02:00
David Lord
f75ad9fca2
refactor session cookie domain logic
cache result of session cookie domain
add warnings for session cookie domain issues
add changelog
2017-05-13 21:59:00 -07:00
David Lord
7ad79583b9
add sort by match order
sort by endpoint by default
combine sort flags
sort methods
ignore HEAD and OPTIONS methods by default
rearrange columns
use format to build row format string
rework tests
add changelog
2017-04-26 10:26:59 -07:00
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
2017-04-25 08:30:48 -07:00
David Lord
46f83665ef
clean up blueprint json support
add changelog for #1898
2017-04-24 10:16:50 -07:00
David Lord
13754b6d11
ensure error while opening session pops context
errors will be handled by the app error handlers
closes #1538, closes #1528
2017-04-22 13:57:04 -07:00
David Lord
648344d4e8
use mro to collect methods
ignore methods attr unless explicitly set
add changelog
2017-04-21 10:43:02 -07:00
David Lord
97e2cd0a5a
update changelog
move test next to existing test, rename
reword / reflow param doc
2017-04-21 07:26:30 -07:00
David Lord
8ad4f476aa
Merge branch 'master' into jrmccarthy-master 2017-04-21 07:03:46 -07:00
rocambolesque
19fbe3a18f
Add scheme to url_build error handler parameters 2017-04-20 08:30:07 -07:00
David Lord
aafb80c527
add changelog for #2223 2017-04-08 11:08:08 -07:00
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.
2017-04-07 16:31:54 +02:00
Markus Unterwaditzer
de555c82ce Merge branch '0.12-maintenance' 2017-03-31 18:44:33 +02:00
Markus Unterwaditzer
c935eaceaf Revert "Handle BaseExceptions (#2222)"
This reverts commit 1d4448abe3.
2017-03-31 18:44:14 +02:00
Markus Unterwaditzer
f7d6d4d4f6 Prepare for 0.12.1 2017-03-31 18:43:34 +02:00