Jon S. Stumpf
8577b347a7
add pre-commit config for flake8
2019-06-01 09:13:46 -04:00
David Lord
d6b3e5eccf
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
931d62c892
Clarify documentation about how url_for uses configuration values ( #2759 )
2019-05-31 15:33:06 -04:00
David Lord
797fb5f64b
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
ffdc3ff595
Fix testing documentation to demonstrate using test client with teardown
2019-05-31 13:18:54 -04:00
Anthony Plunkett
cc2580af09
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
6d8c7c987d
add quickstart about JSON responses
2019-05-24 10:28:12 -07:00
pgjones
9e0bd76d2a
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
9452450b6c
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
683584e5c5
Fix #2897 - Add extra_files option to flask run CLI
2019-05-23 10:47:41 -07:00
David Lord
479041907f
add sphinx-issues
2019-05-17 13:26:54 -07:00
David Lord
d37b992a54
Merge branch '1.0.x'
2019-05-17 11:13:08 -07:00
brunoais
b7bac12723
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
316caad5db
Merge branch '1.0.x'
2019-05-16 12:18:36 -07:00
A Brooks
651692c1a1
Fix various small spelling errors.
2019-05-16 11:50:10 -07:00
Charles Ross
4f3dd3183f
update docs on gunicorn deploy and app discovery
2019-05-16 10:45:03 -07:00
Tom-McDonald
406df032bc
replaced deprecated sample code in proxy-setup docs
2019-05-16 09:54:49 -07:00
Adam Johnson
00b94d76d5
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
342fbe6fe7
improve env vars config example
2019-05-16 08:48:34 -07:00
jaydarius
b028b995ce
use or to complete the either statement
2019-05-08 10:59:55 -04:00
David Baumgold
3b6d1ecd24
fix RST line too long
2019-05-06 11:11:32 -04:00
David Lord
26d79e5632
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
e4f8be4ee5
Fix typo in URL defaults example
2019-04-12 09:45:58 +08:00
Grey Li
89a3e0c915
doc: Improve description for valid view func return value
...
* improve wording.
* remove unnecessary spaces.
2019-03-06 10:34:21 +08:00
David Lord
0a2f289c40
Merge pull request #3103 from tbm/typos
...
Fix typos in the documentation
2019-02-24 06:33:44 -08:00
Martin Michlmayr
93f03eabbb
Fix typos in the documentation
2019-02-24 10:40:23 +00:00
Martin Michlmayr
534bad66d8
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
3736f27760
fix the typo
2019-01-12 21:42:06 +09:00
venus
b86b63e435
fix the typo
2019-01-12 14:51:04 +08:00
David Lord
091ada7da3
remove encoding from method override pattern
2019-01-07 13:09:36 -08:00
David Lord
39a8efe484
Merge branch '1.0-maintenance'
2019-01-06 15:46:33 -08:00
David Lord
141373fdd0
simplify mongoengine doc, redirect from mongokit
2019-01-06 15:42:08 -08:00
Igor Ghisi
1643efd81f
Replace MongoKit by MongoEngine on docs
...
Docs chapter "Patterns for Flask" has a section dedicated to MongoKit,
but MongoKit lib seems unmaintained and is not compatible with recent
versions of PyMongo.
This commit replaces MongoKit guide with a new one using MongoEngine.
Closes #2907
2019-01-06 15:12:53 -08:00
David Lord
0a0d0e1017
Merge pull request #3067 from pallets/tutorial-flask-run
...
clarify where to call flask run from in tutorial
2019-01-06 15:11:30 -08:00
David Lord
564faabda1
clarify where to call flask run from in tutorial
2019-01-06 15:10:38 -08:00
Stephon Harris
ee861266dc
Adding conjunction where for clarification
2019-01-06 15:05:54 -08:00
nathanbegbie
7b00a51acc
Update docs on larger applications wrt tutorial
...
The wording of the docs makes it sound like the tutorials use the simple structure for a flask application, which they no longer do.
This commit re-words the docs to make it clearer.
2019-01-06 14:53:03 -08:00
garenchan
da19d8a914
Docs: fix some typos in config.rst
2019-01-06 14:45:10 -08:00
Douglas Thor
fad04d2547
document that Config.from_object uses object as-is
2019-01-06 14:34:05 -08:00
David Lord
fc7a1c4344
Merge branch '1.0-maintenance'
2019-01-06 10:36:54 -08:00
David Lord
7f013c7a3c
use "-m virtualenv" in installation doc
2019-01-06 10:25:16 -08:00
Mark Amery
7e44691ee3
Clarify and add detail to tojson docs
...
Fix some confusing and obsolete prose.
2019-01-06 09:44:09 -08:00
David Lord
f4076ad5ff
Merge pull request #3031 from jseldess/fix-typos
...
Fix typos found while completing the Flask tutorial
2019-01-06 08:11:39 -08:00
Jesse Seldess
0c011a4c15
Fix typos found while completing the Flask tutorial
2019-01-06 08:01:45 -08:00
Colin Adams
e0916c7d0d
Clarify prefixing of URLs for blueprint endpoints
...
Clarify that endpoint names are prefixed by the name of the blueprint,
but the URL is not automatically prefixed.
2019-01-06 06:58:38 -08:00
Aly Sivji
4ceeb04a1c
Add SPA pattern to docs
2019-01-06 06:19:55 -08:00
David Lord
ca27661d8a
Merge branch '1.0-maintenance'
2019-01-05 15:12:17 -08:00
David Lord
6b11d22427
Merge pull request #3064 from pallets/docs-fix
...
fix docs build
2019-01-05 15:06:41 -08:00
David Lord
a97c5c75c7
fix docs build
2019-01-05 14:59:25 -08:00
Emlyn Price
7c429a182b
Add comment about using factory function in __init__.py
2019-01-04 22:12:53 +00:00