Commit graph

2626 commits

Author SHA1 Message Date
Jiri Kuncar
cb001d3ad0 Ignore cache on request.get_json(cache=False) call (#2089)
* Test cache argument of Request.get_json

* Ignore cache on request.get_json(cache=False) call

Removes usage of `_cached_json` property when `get_json` is called with
disabled cache argument. (closes #2087)
2016-12-21 21:08:38 +01:00
Raphael Deem
46efe74805 use dict instead of if/else logic (#2093) 2016-12-21 21:07:57 +01:00
Hopsken
755401d5dc Update README for minitwit (#2119)
add step 2 to run minitwit
2016-12-21 21:07:09 +01:00
Sven-Hendrik Haase
41d4c60e0b Style the flask command consistently (#2120)
It's done like this in other parts of this doc.
2016-12-21 21:06:48 +01:00
Sven-Hendrik Haase
5d4e95735e Remove wrong comma (#2116) 2016-12-19 05:37:34 -08:00
Markus Unterwaditzer
08188019b7 Merge pull request #2088 from ezramorris/patch-1
Add link to AWS EB Flask tutorial
2016-11-18 15:38:31 +01:00
ezramorris
7f0240cabc Add link to AWS EB Flask tutorial 2016-11-17 14:01:30 +00:00
Markus Unterwaditzer
0aa7ebd1e9 Fix import error 2016-11-15 11:58:44 +01:00
Jannis Leidel
8d03e03764 Fix rST rendering of env var (#2085)
This was broken in ad011bc32d (diff-fd40cf2be7711772de9d8316da038cceR263)
2016-11-15 11:57:09 +01:00
Giles Thomas
9e309d1b0c Added a link to instructions for PythonAnywhere (#2081) 2016-11-07 10:10:02 -08:00
Alex Kahan
279a925ab8 Parameterizing test (#2073) 2016-11-03 10:11:24 -07:00
Markus Unterwaditzer
f31af2351b Use tox from make test 2016-11-02 17:56:59 +01:00
Tery Lim
bbe09aba26 Update errorhandling.rst (#2075)
Fix LogRecord class reference.
2016-11-01 21:04:20 -07:00
Tery Lim
49613fe775 Update errorhandling.rst (#2074) 2016-11-01 19:58:22 -07:00
Shandy Brown
816939e907 Correct grammar (#2061) 2016-11-01 18:52:54 -07:00
Clenimar Filemon
562656af0a Capitalize occurrences of 'flask' (#2067) 2016-11-01 18:52:32 -07:00
Philippe Ombredanne
d631385f02 Add license_file to setup.cfg metadata (#2024)
Without this, the LICENSE file is never included in the built wheels: this makes it harder for users to comply with the license.
With this addition a file LICENSE.txt will be created in the `xxx.dist-info` directory with the content of the `license_file` file, e.g. the top level LICENSE.
2016-11-01 13:11:53 -07:00
Martijn Pieters
3e0cb3d3be Remove busy-work. (#2072)
It is entirely sufficient to walk the MRO of the exception class, no need to check for classes re-appearing later on, no need to add the MRO of any superclass.

* Python refuses point-blank to create a class with a circular MRO.
* All classes in a superclass MRO *already* appear in the MRO of the derived type. Re-adding the contents of a superclass MRO is doing double work.
2016-11-01 07:35:17 -07:00
Alex Kahan
fbcba68f5f Adding coverage generation to tox (#2071)
* Adding coverage generation to tox

* Removing test directory from coverage command

* Adding back  to pytest command
2016-10-31 23:10:27 +01:00
Clenimar Filemon
24e731e9ff Update docstring for errorhandler() (#2070) 2016-10-31 17:41:38 +01:00
Markus Unterwaditzer
b506b7bfbf Merge branch '0.11-maintenance' 2016-10-30 14:35:15 +01:00
Kyle Lawlor
02cab299c3 Fixes import statement in flaskr (#2068)
- `from flaskr.flaskr import app` in flaskr/__init__.py
  causes an import error with Python 2
- The relative import now used works for py2 and py3
2016-10-30 14:34:49 +01:00
Ionuț Ciocîrlan
8c205c077d Fix grammar in docs 2016-10-24 13:20:54 +02:00
Cody
b789ca35d5 add 'caution' section to docs, workaround for zero-padded file modes (#2057)
Fix #2029
2016-10-14 10:13:42 +02:00
David Lord
4f23ea06c5 Windows venv is Scripts, capital S
closes #2056
2016-10-12 12:14:49 -07:00
Michael Recachinas
3f6ddf9cfd Default environ (#2047)
* Add init to FlaskClient

This addresses #1467. The init in the subclass
can now take in `environ_base`, which will then get
passed to `make_test_environ_builder` and to
`EnvironBuilder` via keyword args.

This should provide the default environment capability
on `app.test_client()` init.

* Add kwarg `environ_base` to `make_test_environ_builder` call

This change now passes `environ_base` from either
`kwargs` in `FlaskClient.open` or `FlaskClient.environ_base`
if passed into the init.

* Fix assignment reference typo

* Add default `environ_base` to `FlaskClient.__init__`

* Set default kwargs for `environ_base` in `FlaskClient.open`

* Remove specific environ_base kwarg since its in kwargs

* Add docstring to FlaskClient detailing environ_base

* Document app.test_client default environ in CHANGES

* Re-word environ_base changes in FlaskClient docstring

* Add client.environ_base tests

* Mention preset default environ in `app.test_client`

* Add versionchanged directive to docstring in FlaskClient
2016-10-12 08:54:24 +02:00
Hassam
bcd5432761 Fix #2051: Fix flaskr import in flaskr/__init__.py (#2052) 2016-10-08 20:34:56 +02:00
Michael Recachinas
d544a46a7d Remove -a/--app from Quickstart documentation (#2046)
* Remove `-a/--app` from Quickstart documentation

As mentioned in #2009, simplifying the CLI saw the removal of the `-a/--app` flag. Therefore, the only way to specify the module to import is by setting `FLASK_APP`.

* Remove misleading `either` from CLI help

The CLI help details how to run the application, but still uses the phrasing "either through the `FLASK_APP`...". This likely is an artifact from when `-a/--app` was still present in the CLI.
2016-10-01 18:45:22 +02:00
Joël Charles
f2b945d586 make use of range requests if available in werkzeug (#2031)
* make use of range requests if available in werkzeug

* different logic for testing werkzeug functionality
2016-09-26 12:43:46 +02:00
小明
541f5439e0 Fix unbound error (#2039) 2016-09-25 18:25:54 +02:00
Douglas Thor
114257ed58 Updated mod_wsgi.rst to point to new mod_wsgi repo (#2038) 2016-09-24 13:07:19 +02:00
Markus Unterwaditzer
c60864226f Avoid always-false statement
See https://github.com/pallets/flask/pull/1849/files#r79371299
2016-09-19 23:30:24 +02:00
Benjamin Dopplinger
074563185c Fix typo in MethodView doc (#2028) 2016-09-18 20:24:46 -07:00
Markus Unterwaditzer
7b9b5580ee Use abort docs from Werkzeug
Fix #1960
2016-09-18 15:47:52 +02:00
Bruno Thalmann
f5388fd5b2 Removed unused import. (#2026) 2016-09-18 14:10:00 +02:00
Andrew Arendt
06dd928b8d Remove nonsense from cli docs 2016-09-14 20:03:21 +02:00
Armin Ronacher
1759c20945 Set merge strategy for CHANGES 2016-09-12 21:55:17 +03:00
Armin Ronacher
de6067e0d4 Merge branch 'feature/logger-propagation' 2016-09-12 21:54:41 +03:00
Armin Ronacher
3d68fba011 Merge pull request #2019 from pallets/bugfix/sendfile-error
Do not cause errors for unknown files for sendfile
2016-09-12 21:52:42 +03:00
Markus Unterwaditzer
c0d4e10087 Merge pull request #2022 from pablogamboa/patch-1
Fix typo in docs
2016-09-12 10:42:23 +02:00
Pablo Marti
675805b2a4 Fix typo in docs
Also added one missing comma for readability
2016-09-12 08:41:09 +01:00
Armin Ronacher
c78bcdf25c Updated upgrade docs 2016-09-11 21:28:30 +03:00
Markus Unterwaditzer
7b86b527c7 Merge branch '0.11-maintenance' 2016-09-11 17:55:33 +02:00
Kyle Lawlor
f484a724a4 Address #1980 (#2021)
* Distinguish between directories and files

* Convert larger apps to make use of setup.py

- replaces runserver.py with setup.py
- example now runs with recommended structure

* Fixes a typo and formats the added paragraph
2016-09-11 17:53:35 +02:00
Armin Ronacher
578aa5805a Killed now dead code 2016-09-11 16:57:43 +03:00
Armin Ronacher
c27c55be2f Merge pull request #2013 from pallets/bugfix/error-handler-error-handler
Corrected after response for error handlers
2016-09-10 03:36:29 +03:00
Armin Ronacher
830632714c Do not error for unknown files if send_file sends an actual file 2016-09-10 03:33:53 +03:00
Andrew Arendt
09e6254efc fixed deprecated syntax in setup.cfg (#2015) 2016-09-08 19:24:07 +02:00
Akbar Ibrahim
d34d878095 Fixed error in errorhandler doc string. (#2014) 2016-09-08 17:34:51 +02:00
Markus Unterwaditzer
525e266822 Merge branch '0.11-maintenance' 2016-09-08 15:21:05 +02:00