Armin Ronacher
1f0ca894a2
Killed now dead code
8 years ago
Armin Ronacher
a30951ec28
Do not error for unknown files if send_file sends an actual file
8 years ago
Akbar Ibrahim
c687ffb192
Fixed error in errorhandler doc string. ( #2014 )
8 years ago
Armin Ronacher
9cd32cac32
Corrected after response for error handlers
...
Before this change after request functions were not correctly
invoked for error handlers.
8 years ago
Markus Unterwaditzer
c4ec6954e5
Don't passthrough_errors unless instructed. ( #2006 )
...
Fix #2005
Revert #1679 and #1996
8 years ago
Afonso Queirós
ccd02bfe8c
Correcting Custom Test Client class docs ( #2004 )
8 years ago
Roman
92ce20eeac
Fix error in send_file helper ( #2003 )
...
* Fix error in send_file (mimetype_filename is not defined)
* fix formatting error message in send_file
8 years ago
Josh Soref
6e6c3a4636
Spelling ( #1998 )
...
* spelling: cacheability
* spelling: conceptually
* spelling: javascript
* spelling: reset
* spelling: raised
* comma: instead..., they...
8 years ago
Markus Unterwaditzer
098ea0c8ca
Only passthrough_errors if PROPAGATE_EXCEPTIONS
...
See pallets/werkzeug#954
8 years ago
Markus Unterwaditzer
71e10be286
Properly remove f.name usage in send_file ( #1988 )
...
* Properly remove f.name usage in send_file
* Update changelogs
* Fix tests
8 years ago
Armin Ronacher
e00e2c22aa
Disable logger propagation by default
8 years ago
Markus Unterwaditzer
136a833a8d
Bugfix: EnvironBuilder doesn't take `json`
8 years ago
Markus Unterwaditzer
5c4fa7e91c
Remove already defined method
8 years ago
Markus Unterwaditzer
62b0b6652a
testing: Make json a keyword arg
8 years ago
Adam Byrtek
866118302e
Remove _missing sentinel and update docs
8 years ago
Adam Byrtek
5ebdd5dd74
Documentation updates
8 years ago
Adam Byrtek
1df2788a8f
Use app_ctx instead of request_ctx to access the app
8 years ago
Adam Byrtek
f0d3b71a94
Updates after code review
8 years ago
Adam Byrtek
f0f458e0c5
Alternative solution for lack of response caching
8 years ago
Adam Byrtek
23de58682c
Remove redundant `cache` flag
8 years ago
Adam Byrtek
c9ef500c5c
Mixin for JSON decoding code shared between request/response
8 years ago
Adam Byrtek
ca547f0ec3
JSON response tests and first draft of code that passes
8 years ago
Adam Byrtek
b099999c6c
Use proper exception type and update changelog
8 years ago
Adam Byrtek
6c5ef2bc5c
Use `content_type` kwarg instead of manipulating headers
8 years ago
Adam Byrtek
c4139e0e5d
JSON support for the Flask test client
8 years ago
Nate Prewitt
0f1cf50f97
adding in try around __import__ to catch invalid files/paths ( #1950 )
8 years ago
Antoine Catton
516ce59f95
Add the ability to combine MethodViews
9 years ago
georgschoelly
67e391921c
fix docs: name of url_value_preprocessor method ( #1932 )
...
This typo got introduced in 5da1fc2215
,
the original commit for the url_value_preprocessor decorator.
9 years ago
David Lord
1928f28a68
clean up code formatting in some docs
...
fix warnings while building docs
9 years ago
Kiss György
b8e826c16b
Added tests, fixed some minor alignment problems.
9 years ago
Kiss György
1647179511
Added routes command, which shows all the endpoints registered for the app.
...
Orderable by rules, endpoints and methods. Shows up in the builtin command list.
9 years ago
David Lord
0e4607000d
re-add passthrough_errors to cli runner ( #1928 )
...
This got dropped during the cli simplification. Re: #1679
9 years ago
Archie Roller
b8aca21a39
Fix #1911 ( #1913 )
9 years ago
Markus Unterwaditzer
5c12721730
Revert "Addressing Issue 1809"
9 years ago
Dave Barker
0514ba2de1
Enable template auto-reloading in app.run()
...
When Flask app debugging is enabled (app.debug==True), and Jinja2
template auto-reloading is not explicitly disbaled, template
auto-reloading should be enabled.
If the app is instantiated, the jinja_env object is accessed (thereby
initialising the Jinja2 environment) and the server is then started with
app.run(debug=True), template auto-reloading is *not* enabled.
This is because reading the jinja_env object causes the environment
initialisation function to set auto_reload to app.debug (which isn't yet
True). Calling app.run(debug=True) should correct this in order to
remain consistent with Flask code reloading (which is enabled within
app.run() if debug == True).
9 years ago
Markus Unterwaditzer
6e46d0cd39
Fix PyPy3 support and add bug references
...
Fix #1841
9 years ago
RamiC
4305ebdf66
Check for a request ctx before using the request.
...
Use the app json coder when blueprint json coder is set to none.
Revert the failling test to using an app_context
re #1710
9 years ago
RamiC
501b8590dd
Allow per blueprint json encoder decoder
...
re #1710
9 years ago
Markus Unterwaditzer
724f04d305
This is 0.11.2-dev
9 years ago
Markus Unterwaditzer
d1d82ca8ce
Bump version to 0.11.1
9 years ago
David Lord
7c271401b2
pass value directly to last_modified
9 years ago
Prachi Shirish Khadke
af515cc7ea
Add last_modified arg for send_file
...
Enhancement: Add last_modified arg of type DateTime to send_file.
Fixes pallets/flask#1321
9 years ago
Giampaolo Eusebi
03ea11fe76
Make safe_join able to safely join multiple paths
9 years ago
Josiah Philipsen
41e08f4ccd
fixed unmatched elif
...
Also update relevant test
9 years ago
jphilipsen05
fe5f714026
fixed unmatched elif ( #1872 )
9 years ago
Dan Sully
8458cc5cd1
Remove deprecation warnings for add_etags & mimetype guessing for send_file()
...
Fix #1849
9 years ago
Jason Brazeal
d88c08e56f
improved documentation for config.from_object ( #1870 )
9 years ago
RamiC
6b28ceba83
Use the whole sys.version string
9 years ago
RamiC
6bee3e4995
Add a --version switch to flask cli
...
re #1828
9 years ago
Yoav Ram
a725836523
Update help to > set FLASK_APP=hello.py ( #1830 )
...
When running `flask --help`, the printed string contains this:
> Example usage:
>
> set FLASK_APP=hello
> set FLASK_DEBUG=1
> flask run
but it actually only works with `set FLASK_APP=hello.py` so the help should be changed.
This is true on my Windows 7 Python 3.5 flask 0.11 setup.
9 years ago