Markus Unterwaditzer
71e10be286
Properly remove f.name usage in send_file ( #1988 )
...
* Properly remove f.name usage in send_file
* Update changelogs
* Fix tests
9 years ago
Armin Ronacher
e00e2c22aa
Disable logger propagation by default
9 years ago
Markus Unterwaditzer
136a833a8d
Bugfix: EnvironBuilder doesn't take `json`
9 years ago
Markus Unterwaditzer
5c4fa7e91c
Remove already defined method
9 years ago
Markus Unterwaditzer
62b0b6652a
testing: Make json a keyword arg
9 years ago
Adam Byrtek
866118302e
Remove _missing sentinel and update docs
9 years ago
Adam Byrtek
5ebdd5dd74
Documentation updates
9 years ago
Adam Byrtek
1df2788a8f
Use app_ctx instead of request_ctx to access the app
9 years ago
Adam Byrtek
f0d3b71a94
Updates after code review
9 years ago
Adam Byrtek
f0f458e0c5
Alternative solution for lack of response caching
9 years ago
Adam Byrtek
23de58682c
Remove redundant `cache` flag
9 years ago
Adam Byrtek
c9ef500c5c
Mixin for JSON decoding code shared between request/response
9 years ago
Adam Byrtek
ca547f0ec3
JSON response tests and first draft of code that passes
9 years ago
Adam Byrtek
b099999c6c
Use proper exception type and update changelog
9 years ago
Adam Byrtek
6c5ef2bc5c
Use `content_type` kwarg instead of manipulating headers
9 years ago
Adam Byrtek
c4139e0e5d
JSON support for the Flask test client
9 years ago
Nate Prewitt
0f1cf50f97
adding in try around __import__ to catch invalid files/paths ( #1950 )
9 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
Ionuț Arțăriși
ba07f5bd81
Show line which caused the DeprecationWarning ( #1831 )
...
When raising a DeprecationWarning, show the line in the application code
which caused the warning, rather than the line in Flask
e.g. a file `app.py` with:
```python
from flask import Flask
from flask.ext.babel import Babel
```
will show:
```
app.py:2: ExtDeprecationWarning: Importing flask.ext.babel is
deprecated, use flask_babel instead.
```
instead of:
```
/home/mapleoin/venv/local/lib/python2.7/site-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.babel is deprecated, use flask_babel instead.
.format(x=modname), ExtDeprecationWarning
```
9 years ago
Armin Ronacher
b23cd61e04
This is 0.12-dev
9 years ago
Armin Ronacher
13e6a01ac8
Bump version number to 0.11
9 years ago
Armin Ronacher
8482ce6b8c
Improve application context popping
...
Exceptions during teardown handling will no longer leave application
contexts lingering around. This fixes #1767
9 years ago
Armin Ronacher
9594876c1f
Added plugin support to the cli
9 years ago
Armin Ronacher
a7d829c618
Update docs to the new CLI patterns
9 years ago
Armin Ronacher
523e271183
Implemented simplified CLI interface
9 years ago
ThiefMaster
c5900a1adf
s/1.0/0.11/ in versionadded/versionchanged markers
...
closes #1817
9 years ago
Thomas Sanjurjo
bdbca923ef
Addressing Issue 1809 ( #1811 )
...
document kwargs for Flask.register_blueprint
9 years ago