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
Hsiaoming Yang
22e072379b
cleanup werkzeug import ( #2582 )
7 years ago
David Lord
333865ea34
windows python 2 doesn't provide inet_pton
7 years ago
David Lord
06f96df67e
silence ENOTDIR when loading config file
7 years ago
David Lord
0a33954555
improve documentation for session attributes
...
add test for session attributes
7 years ago
David Lord
f7983ae96a
concat newline in jsonify
...
ref pallets/werkzeug#1130
7 years ago
ThiefMaster
c52e1b7388
Fix ValueError for some invalid Range requests
...
fixes #2526
7 years ago
Armin Ronacher
1a2dc6f205
Fixed tests for python 3
7 years ago
Armin Ronacher
2ef2000a39
Enable threads by default for the dev server ( #2529 )
...
Enable threads by default for dev server
7 years ago
Armin Ronacher
c23a63a185
Improved bad factory error handling
7 years ago
Roy Crihfield
e3c853e604
Fix typo in cli.py ( #2502 )
7 years ago
David Lord
9bc329c0c9
rewrite cli docs
...
reflects the current FLASK_APP detection
7 years ago
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
7 years ago
Caratpine
2f57a0b917
Blueprint view function name should not contain dots
7 years ago
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.
7 years ago
Grey Li
851ca95778
Fix typo in comment
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
a89bdb3395
prefer the url's scheme over the kwarg
...
tabs -> spaces
add test
add changelog
8 years ago
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
8 years ago
David Lord
491d331e6e
load env vars using python-dotenv
8 years ago
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
8 years ago
David Lord
59f7966e31
support passing environ to test client ( #2412 )
...
closes #2411
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
Miguel Grinberg
4f30cb7c57
fix variable substitution in error message
8 years ago
David Lord
5bc0d15359
un-deprecate request.json
8 years ago
David Lord
715a9a3e7b
remove deprecated flask.ext
8 years ago
David Lord
723e665004
remove deprecated Request.module
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
448368e226
style cleanup
...
[ci skip]
8 years ago
Miguel Grinberg
7c40aa9e50
Import app from wsgi.py or app.py if FLASK_APP is not defined
...
Fixes #2376
8 years ago
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.
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
12c45f06a5
remove unused import
8 years ago
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
8 years ago
David Lord
e97253e4c1
clean up JSON code and docs
8 years ago
David Lord
6637e20174
only open session if request hasn't been pushed yet
...
closes #1348
8 years ago
David Lord
217d5f9bc0
mention mimetype and is_json
8 years ago
Grant Wu
daf85d3725
Clarify documentation for json parsing
...
Documentation does not currently mention that is_json accepts mimetypes that are not strictly application/json.
8 years ago