Adam Byrtek
b099999c6c
Use proper exception type and update changelog
2016-08-19 21:14:12 +02:00
Adam Byrtek
6c5ef2bc5c
Use content_type kwarg instead of manipulating headers
2016-08-19 21:13:33 +02:00
Adam Byrtek
c4139e0e5d
JSON support for the Flask test client
2016-08-19 21:13:33 +02:00
Nate Prewitt
0f1cf50f97
adding in try around __import__ to catch invalid files/paths ( #1950 )
2016-08-12 15:12:00 +02:00
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.
2016-06-26 13:32:47 -07:00
David Lord
1928f28a68
clean up code formatting in some docs
...
fix warnings while building docs
2016-06-26 13:03:29 -07:00
David Lord
0e4607000d
re-add passthrough_errors to cli runner ( #1928 )
...
This got dropped during the cli simplification. Re: #1679
2016-06-23 13:00:45 -07:00
Archie Roller
b8aca21a39
Fix #1911 ( #1913 )
2016-06-15 09:27:06 -07:00
Markus Unterwaditzer
5c12721730
Revert "Addressing Issue 1809"
2016-06-14 22:45:24 +02:00
Markus Unterwaditzer
433c561494
Merge branch '0.11-maintenance'
2016-06-13 20:34:30 +02:00
Markus Unterwaditzer
6e46d0cd39
Fix PyPy3 support and add bug references
...
Fix #1841
2016-06-13 20:33:57 +02:00
Markus Unterwaditzer
b990d80764
Merge branch '0.11-maintenance'
2016-06-07 18:26:06 +02:00
Markus Unterwaditzer
724f04d305
This is 0.11.2-dev
2016-06-07 18:23:09 +02:00
Markus Unterwaditzer
d1d82ca8ce
Bump version to 0.11.1
2016-06-07 18:22:43 +02:00
David Lord
7c271401b2
pass value directly to last_modified
2016-06-05 12:42:34 -07:00
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
2016-06-05 10:59:17 -07:00
Giampaolo Eusebi
03ea11fe76
Make safe_join able to safely join multiple paths
2016-06-04 11:26:16 +02:00
Josiah Philipsen
41e08f4ccd
fixed unmatched elif
...
Also update relevant test
2016-06-03 18:42:07 +02:00
jphilipsen05
fe5f714026
fixed unmatched elif ( #1872 )
2016-06-03 18:41:10 +02:00
Dan Sully
8458cc5cd1
Remove deprecation warnings for add_etags & mimetype guessing for send_file()
...
Fix #1849
2016-06-03 14:52:33 +02:00
Jason Brazeal
d88c08e56f
improved documentation for config.from_object ( #1870 )
2016-06-02 15:40:59 -07:00
RamiC
6b28ceba83
Use the whole sys.version string
2016-06-02 13:55:00 +03:00
RamiC
6bee3e4995
Add a --version switch to flask cli
...
re #1828
2016-06-02 13:35:16 +03:00
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.
2016-05-30 23:20:35 +02:00
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
```
2016-05-29 14:51:05 -07:00
Armin Ronacher
b23cd61e04
This is 0.12-dev
2016-05-29 11:02:48 +02:00
Armin Ronacher
13e6a01ac8
Bump version number to 0.11
2016-05-29 11:02:23 +02:00
Armin Ronacher
8d7e7aab31
Merge pull request #1822 from pallets/bugfix/better-pop
...
Improve application context popping
2016-05-26 22:31:15 +02:00
Armin Ronacher
c73cf0f82e
Merge pull request #1821 from pallets/feature/plugin-cli
...
Added plugin support to the cli
2016-05-26 22:17:34 +02:00
Armin Ronacher
b13e83a2f2
Merge pull request #1813 from pallets/bugfix/scheme
...
Resolve state issue for url_for with forced scheme
2016-05-26 21:48:20 +02:00
Armin Ronacher
8482ce6b8c
Improve application context popping
...
Exceptions during teardown handling will no longer leave application
contexts lingering around. This fixes #1767
2016-05-26 21:46:56 +02:00
Armin Ronacher
87787b130b
Merge pull request #1814 from pallets/feature/faster-template-loading
...
Fast path for disabled template load explain.
2016-05-26 21:34:56 +02:00
Armin Ronacher
9594876c1f
Added plugin support to the cli
2016-05-26 21:29:01 +02:00
Armin Ronacher
a7d829c618
Update docs to the new CLI patterns
2016-05-26 20:45:50 +02:00
Armin Ronacher
523e271183
Implemented simplified CLI interface
2016-05-26 20:07:52 +02:00
ThiefMaster
c5900a1adf
s/1.0/0.11/ in versionadded/versionchanged markers
...
closes #1817
2016-05-23 14:43:23 +02:00
Thomas Sanjurjo
bdbca923ef
Addressing Issue 1809 ( #1811 )
...
document kwargs for Flask.register_blueprint
2016-05-22 07:09:21 -07:00
Armin Ronacher
96ec24f6e0
Fast path for disabled template load explain.
2016-05-22 11:36:40 +02:00
Armin Ronacher
6aee9f6d77
Resolve state issue for url_for with forced scheme
...
This fixes #1596
2016-05-22 10:45:29 +02:00
Jannis Leidel
88500f5cc7
Forward ported CLI tests from Flask-CLI and fixed a bug with the CLI's name. ( #1806 )
...
* Forward port the CLI tests from Flask-CLI.
* Make sure the parameter passed to the CLI's AppGroup is the app's name, not the app itself.
2016-05-16 19:36:55 +02:00
Benjamin Dopplinger
9f4c569c83
Fix "with" formatting in doc
2016-05-09 13:37:27 +10:00
Miguel Grinberg
de25e98f91
minor rewording of get_json documentation for clarity ( #1781 )
2016-05-04 06:46:49 -07:00
Steven Loria
2bf477cfea
Add JSONIFY_MIMETYPE configuration variable ( #1728 )
...
Allow jsonify responses' mimetype to be configured
2016-04-08 15:30:47 -07:00
Daniel Quinn
740c42217c
The comment didn't make any sense ( #1777 )
...
Fix doc comment for View.methods
2016-04-08 08:53:25 -07:00
Jeff Widman
6bf42f9a84
Merge pull request #1577 from sprin/1102_warn_on_run
...
docs: run() should not be used in production
2016-04-04 11:22:34 -07:00
Steffen Prince
6e91498e64
docs: run() should not be used in production
...
Refs #1102
2016-04-04 00:03:29 -05:00
David Hou
9f1be8e795
Raise BadRequest if static file name is invalid
...
* Raise BadRequest if static file name is invalid
* Clean up syntax a bit
* Remove unnecessary close()
2016-04-02 21:07:27 +02:00
Markus Unterwaditzer
d3d8a4694a
Deprecate flask.ext
...
* Add deprecation warning to ext pkg
* Add docs on deprecation of flask.ext
* Improve deprecation warnings
* Add headers for better distinction, fix ordering issue of paragraphs
2016-04-02 21:06:30 +02:00
Shipeng Feng
cc536c8a7b
Fixed stream_with_context if decorated function has parameters
2016-04-01 16:17:45 -07:00
lord63
07fdd1930b
Update app.py
2016-02-04 14:35:03 +08:00