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
Hsiaoming Yang
22e072379b
cleanup werkzeug import ( #2582 )
2018-01-06 10:49:01 +01:00
David Lord
eebc0edfdd
Merge pull request #2558 from pallets/appveyor
...
add appveyor configuration
2018-01-05 13:32:57 -08:00
David Lord
333865ea34
windows python 2 doesn't provide inet_pton
2018-01-05 13:27:31 -08:00
David Lord
06f96df67e
silence ENOTDIR when loading config file
2018-01-05 07:40:51 -08:00
David Lord
0a33954555
improve documentation for session attributes
...
add test for session attributes
2018-01-04 12:56:18 -08:00
David Lord
f7983ae96a
concat newline in jsonify
...
ref pallets/werkzeug#1130
2018-01-03 13:06:14 -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
Roy Crihfield
e3c853e604
Fix typo in cli.py ( #2502 )
2017-10-24 08:10:12 +02:00
David Lord
9bc329c0c9
rewrite cli docs
...
reflects the current FLASK_APP detection
2017-10-10 11:10:20 -07:00
David Lord
5436dddf64
rewrite cli errors
...
consistent order for arguments to load functions
refactor find_app_by_string to flow better
more cli loader tests
2017-10-10 07:04:53 -07:00
Caratpine
2f57a0b917
Blueprint view function name should not contain dots
2017-10-09 08:12:34 -07:00
Henry Chladil
0a1090890f
Add additional information in the url_rule docs ( #2467 )
...
If a user is making use of the errorhandler(405) decorator, and
they wish to include an Allow header (as per HTTP spec), they may
be confused to find that url_rule is None. This doc change aims to
clarify that because the request was never successfully matched,
it was never bound to a URL rule and to access the valid methods,
they must examine routing_exception.
2017-10-07 19:52:44 +02:00
Grey Li
851ca95778
Fix typo in comment
2017-09-23 22:26:48 +08: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
Igor Kasianov
241673fd15
make_test_environ_builder: use url_scheme from path if provided
...
When providing https url in path ("https://example.com/ ")
we hope that we will get https scheme in environment
2017-07-27 14:50:27 +03: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
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
d13e41ddef
Merge pull request #2399 from davidism/docs-secret-key
...
clean up secret key docs
2017-06-28 08:00:08 -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
Miguel Grinberg
4f30cb7c57
fix variable substitution in error message
2017-06-27 07:27:10 -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
723e665004
remove deprecated Request.module
2017-06-26 07:46:33 -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
448368e226
style cleanup
...
[ci skip]
2017-06-16 06:59:37 -07:00
Miguel Grinberg
7c40aa9e50
Import app from wsgi.py or app.py if FLASK_APP is not defined
...
Fixes #2376
2017-06-15 11:27:50 -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
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
David Lord
12c45f06a5
remove unused import
2017-06-04 12:38:10 -07:00
David Lord
fa7e8d6073
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
closes #2357
2017-06-04 12:26:21 -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