Commit graph

1350 commits

Author SHA1 Message Date
David Lord
c42803f168
Merge branch '1.0.x' into 1.1.x 2019-07-22 13:31:05 -07:00
Grey Li
90004a83be
Update outdated extension doc
Remove links and descriptions relate to abandoned "Flask Extension
Registry" in documentation
2019-07-22 13:23:57 -07:00
Stéphane Wirtel
98a26cfb42 Documentation: Use Python 3.5+ 2019-07-10 19:03:10 +02:00
David Lord
df470aecb9
use app.name as app.logger name 2019-07-01 14:56:18 -07:00
David Lord
b05a685a03
Merge branch '1.0.x' 2019-07-01 10:54:31 -07:00
Anthony Sottile
a5ecdfa7a5
Fixes for PEP451 import loaders and pytest 5.x
- pytest 5.x drops python2 compatibility and therefore only implements PEP 451
- pytest 5.x made the repr of `ExcInfo` less confusing (fixed tests depending
  on the old format)
2019-07-01 10:43:06 -07:00
David Lord
1351d0a565
Merge branch '1.0.x' 2019-06-23 16:57:52 -07:00
David Lord
cb6272ccc8
fix docks linkcheck 2019-06-23 15:37:51 -07:00
David Lord
28b35c55a1
update docs config 2019-06-23 12:27:25 -07:00
David Lord
7d77958000
use sphinx-issues, rewrap changelog 2019-06-23 12:25:38 -07:00
David Lord
e666f7a69c
standardize license and copyright 2019-06-22 13:09:09 -07:00
David Lord
146df0f9e8
use dashes for command names 2019-06-21 08:47:27 -07:00
David Lord
54519ef028
document behavior of very generic error handlers 2019-06-21 08:22:35 -07:00
David Lord
4b519f0e33
reword api error section 2019-06-12 11:02:53 -07:00
Logan Wright
7bc965fada
adds api error handling documentation 2019-06-12 10:54:12 -07:00
David Lord
09392e0348
Merge remote-tracking branch 'origin/1.0.x' 2019-06-01 06:53:29 -07:00
Jon S. Stumpf
b46f5942a5
address flake8 issues 2019-06-01 06:31:35 -07:00
Jon S. Stumpf
549fed29ea
add pre-commit config for flake8 2019-06-01 09:13:46 -04:00
David Lord
b61cbf8ab4
Merge pull request #3244 from paulgb/master
Clarify documentation about how url_for uses configuration values (#2759)
2019-06-01 08:59:01 -04:00
Paul Butler
a3272941ce Clarify documentation about how url_for uses configuration values (#2759) 2019-05-31 15:33:06 -04:00
Diego Alberto Torres Quintanilla
45b2e7702d Guard against missing request context in logging docs. 2019-05-31 14:54:03 -04:00
David Lord
6e995f2379
Merge pull request #3240 from ultimecia7/docfix
Fix testing documentation to demonstrate using test client with teardown
2019-05-31 14:06:54 -04:00
ultimecia7
d981cc678a Fix testing documentation to demonstrate using test client with teardown 2019-05-31 13:18:54 -04:00
Anthony Plunkett
ec1ccd7530
Add Blueprint level cli command registration
Implements #1357.
Adds ability to register click cli commands onto blueprint.
2019-05-24 14:43:29 -07:00
David Lord
1ecc341fe5
add quickstart about JSON responses 2019-05-24 10:28:12 -07:00
pgjones
7bf8366970
Allow dictionary return values as JSON
This supports an increasingly common usecase whereby JSON is the
primary response (rather than a templated string). Given Flask has a
short syntax for HTML reponses, it seems fitting that it should also
do so for JSON responses. In practice it allows,

     @app.route("/")
     def index():
         return {
             "api_stuff": "values",
         }
2019-05-24 09:48:55 -07:00
David Lord
e18cc4d71d
add SeparatedPathType to accept multiple paths
Multiple paths for the reloader's `--extra-files` are accepted as one
option, separated by ':'.
2019-05-24 07:19:56 -07:00
Bruno Rocha
2308cba407
Fix #2897 - Add extra_files option to flask run CLI 2019-05-23 10:47:41 -07:00
David Lord
6dbcbdee35
add sphinx-issues 2019-05-17 13:26:54 -07:00
David Lord
05a4e15ee4
Merge branch '1.0.x' 2019-05-17 11:13:08 -07:00
brunoais
6142aa64ae
More explicit explanation: session testing
Use a more explicit explanation on how to write code to test own code
when sessions are needed.
The previous code was not fully explicit that the client is supposed
to be called after the session transaction and not during.
2019-05-16 18:07:18 -07:00
David Lord
2236ba980c
Merge branch '1.0.x' 2019-05-16 12:18:36 -07:00
A Brooks
4e272fc042
Fix various small spelling errors. 2019-05-16 11:50:10 -07:00
Charles Ross
0df2620c5f
update docs on gunicorn deploy and app discovery 2019-05-16 10:45:03 -07:00
Tom-McDonald
994cd1db33
replaced deprecated sample code in proxy-setup docs 2019-05-16 09:54:49 -07:00
Adam Johnson
e5b0fe6841
Fix some HTML injection paths in examples
These are unlikely to be copy-pasted by users but it's best practice to avoid it and other examples do.
2019-05-16 09:50:58 -07:00
jordan bonser
800c744fe7
improve env vars config example 2019-05-16 08:48:34 -07:00
jaydarius
42da151fc7 use or to complete the either statement 2019-05-08 10:59:55 -04:00
David Baumgold
6606a4a238 fix RST line too long 2019-05-06 11:11:32 -04:00
David Lord
42b67a1f95
Merge pull request #3150 from greyli/fix-route-defaults-doc
[Doc] Fix typo in code example for route defaults
2019-04-11 19:11:21 -07:00
Grey Li
4df7b220fa Fix typo in URL defaults example 2019-04-12 09:45:58 +08:00
Grey Li
d838f1c918 doc: Improve description for valid view func return value
* improve wording.
* remove unnecessary spaces.
2019-03-06 10:34:21 +08:00
David Lord
86bf9dca72
Merge pull request #3103 from tbm/typos
Fix typos in the documentation
2019-02-24 06:33:44 -08:00
Martin Michlmayr
7b88b35747
Fix typos in the documentation 2019-02-24 10:40:23 +00:00
Martin Michlmayr
5830388ee2
Fix formatting issue in quickstart guide
Due to a formatting issue in the reStructuredText input, the HTML
output produced a description list (<dl>) within the ordered list.
2019-02-23 00:02:01 +00:00
venus
8c979698bd fix the typo 2019-01-12 21:42:06 +09:00
venus
99ad1f3cae fix the typo 2019-01-12 14:51:04 +08:00
David Lord
2c29495e6d
remove encoding from method override pattern 2019-01-07 13:09:36 -08:00
David Lord
ac6746d1be
Merge branch '1.0-maintenance' 2019-01-06 15:46:33 -08:00
David Lord
edef8cb38b
simplify mongoengine doc, redirect from mongokit 2019-01-06 15:42:08 -08:00