Skip to content
Myr

Merge branch 'master' of github.com:mitsuhiko/flask

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parents f52e7a9, 5a7c02b · Browse files · 3 files+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+3 added−3 removed

  • other:+3 added−3 removed

3 files+3 added−3 removed

modified:docs/api.rst+1 added-1 removed
142 unmodified lines
143 .. attribute:: headers144145 A :class:`Headers` object representing the response headers.146147 .. attribute:: status_code147 .. attribute:: status148149 The response status as integer.150151
473 unmodified lines
modified:docs/config.rst+1 added-1 removed
373 unmodified lines
374file from the instance folder with :meth:`Flask.open_instance_resource`.375376Example usage for both::377378 filename = os.path.join(app.instance_root, 'application.cfg')378 filename = os.path.join(app.instance_path, 'application.cfg')379 with open(filename) as f:380 config = f.read()381382 # or via open_instance_resource:
2 unmodified lines
modified:CHANGES+1 added-1 removed
46 unmodified lines
47- Malformed JSON data will now trigger a bad request HTTP exception instead48 of a value error which usually would result in a 500 internal server49 error if not handled. This is a backwards incompatible change.50- Applications now not only have a root path where the resources and modules51 are located but also an instane path which is the designated place to51 are located but also an instance path which is the designated place to52 drop files that are modified at runtime (uploads etc.). Also this is53 conceptionally only instance depending and outside version control so it's54 the perfect place to put configuration files etc. For more information55 see :ref:`instance-folders`.
259 unmodified lines