Commit graph

149 commits

Author SHA1 Message Date
Ties Jan Hefting
9dfcb90c92
Document serialization of Decimal in JSONEncoder
The Flask JSONEncoder serializes Decimal types to strings, but this
behavior is missing from the docs. The docs are updated accordingly.
2022-07-06 11:47:50 +02:00
David Lord
b6a8ccd2cf
Merge branch '2.0.x' 2022-02-14 12:06:57 -08:00
David Lord
761d7e1652
rewrite testing docs 2022-02-13 14:06:51 -08:00
David Lord
b7501776a1
remove deprecated safe_join 2021-11-12 09:52:16 -08:00
Frank Yu
922e91b278
Omit the type attribute of script tag 2021-07-07 15:16:29 +08:00
David Lord
b473e7c97c
use Jinja's tojson filter 2021-02-01 22:48:09 -08:00
Tony De La Nuez
451c1f87f3
got_request_exception only sends unhandled exceptions
Co-authored-by: David Lord <davidism@gmail.com>
2021-02-01 20:28:10 -08:00
David Lord
fdba0d2526
remove JSONMixin 2021-01-29 10:52:48 -08:00
Sergei
7d7e8eef23
API docs - changed flask.request description
- the link should point to the flask's Request
 - longer description is unnecessary, as it's all explained above in flask.Request
2020-07-02 23:54:40 +03:00
David Lord
7e3b8abf99
update docs requirements
remove duplicate docs
2020-04-07 14:39:18 -07:00
David Lord
756902cca1
update json docs 2020-04-07 13:37:14 -07:00
David Lord
c43edfc7c0
remove simplejson
- remove encoding detection backport, json.loads supports it directly
- use str.translate instead of multiple str.replace
2020-04-07 09:55:39 -07:00
David Lord
171aabc87d
remove unused ref directives
replace page refs with doc directives
2020-04-04 12:57:14 -07:00
David Lord
2ae740dd49
f-strings everywhere 2020-04-04 12:10:00 -07:00
Chris Lamb
3ddf7fd2c2 Make the documentation build reproducibly
Whilst working on the Reproducible Builds effort [0] we noticed that
flask could not be built reproducibly.

This is because it includes an absolute build directory in the
documentation as the "json_module" attribute points to a Python class/
module which has a string representation including its path.

This commit skips this (inherited) member from the documentation.

(This was originally filed in Debian as #943674 [1].)

 [0] https://reproducible-builds.org/
 [1] https://bugs.debian.org/943674
2019-10-28 09:16:53 +00: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
2236ba980c
Merge branch '1.0.x' 2019-05-16 12:18:36 -07:00
Grey Li
4df7b220fa Fix typo in URL defaults example 2019-04-12 09:45:58 +08:00
David Lord
3b45b82ec2
Merge branch '1.0-maintenance' 2019-01-06 10:36:54 -08:00
Mark Amery
24325ecb69
Clarify and add detail to tojson docs
Fix some confusing and obsolete prose.
2019-01-06 09:44:09 -08:00
Aditya
f05625eb82 Use https for external links wherever possible 2018-10-27 17:58:45 +05:30
Juan Lara
bb63298b71 Typo in docs
"keeps track on" -> "keeps track of"
2018-06-27 21:49:21 -07:00
David Lord
5d00869aa5
expand explantion about default redirects 2018-04-27 09:57:30 -07:00
Hampus Dunström
a2536e1bdb Added short note about Werkzeug redirect behaviour 2018-04-27 11:40:12 +02:00
David Lord
49a38ed999
use theme provided by pallets-sphinx-themes 2018-04-18 12:05:31 -07:00
David Lord
1ed756a523
add Response.max_cookie_size config 2018-04-10 11:17:18 -07:00
David Lord
2411707492
rework context docs 2018-04-09 00:02:38 -07:00
David Lord
4462cc57c8
rewrite extension docs
remove old extension patterns
remove flask.ext from api docs
2018-02-28 07:52:03 -08:00
David Lord
cf5525f98a
add test_cli_runner for testing app.cli commands 2018-02-19 15:34:46 -08:00
David Lord
491d331e6e
load env vars using python-dotenv 2017-07-16 13:37:51 -07:00
David Lord
465922e5f1
clean up secret key docs
consistent key across docs and examples
consistent key across tests, set in conftest
2017-06-28 07:58:06 -07:00
Tony Narlock
91fd33dbd9 Add docutils label for class-based views 2017-06-12 16:15:52 -05:00
David Lord
dbc70c9274
Merge remote-tracking branch 'remotes/origin/master' into json-mixin 2017-06-04 09:42:39 -07:00
David Lord
9bee2500dd
finish documentation
[ci skip]
2017-06-02 08:09:37 -07:00
David Lord
bbd15d53ad
docs style cleanup
[ci skip]
2017-06-02 07:03:22 -07:00
Jeff Widman
fe7910ccd5 Update docs that request is an object, not a class (#2154)
Cleanup sphinx formatting to show that `request` is an object, not a class. The actual class name is `Request`.

Based on discussion [here](https://github.com/pallets/flask/pull/2151#issuecomment-272699147).
2017-01-17 20:20:07 +01:00
Markus Unterwaditzer
49386ee69e Inherit Werkzeug docs (#2135)
Fix #2132
2016-12-31 16:31:44 +01:00
Markus Unterwaditzer
dcfdfc6476 Use abort docs from Werkzeug
Fix #1960
2016-09-18 15:47:52 +02:00
Adam Byrtek
5ebdd5dd74 Documentation updates 2016-08-19 21:21:43 +02:00
Armin Ronacher
f9ea3fe026 1.0 -> 0.11 in the docs 2016-05-26 20:52:17 +02:00
Armin Ronacher
a7d829c618 Update docs to the new CLI patterns 2016-05-26 20:45:50 +02:00
lord63
e0a8fd3162 Add two missing converters for flask in the docs
All converters are from werkzeug's builtin converters.

Documentation: http://werkzeug.pocoo.org/docs/dev/routing/#builtin-converters
2016-04-01 14:05:11 -07:00
ThiefMaster
bbaf20de7c Add pop and setdefault to AppCtxGlobals 2015-06-20 18:04:58 +02:00
Alexander Pantyukhin
a9066a3756 Changes and docs are modified. 2015-06-17 15:45:37 +02:00
Markus Unterwaditzer
beec47a7cc Deduplicate signals docs
Triggered by #1390
2015-06-10 18:42:55 +02:00
Ford Hurley
d398780852 Mention that custom converters can be defined for url routes 2015-05-01 12:11:55 -04:00
Markus Unterwaditzer
9c1cf1bc08 Fix broken link 2015-03-05 22:04:53 +01:00
Bruce Sutherland
0d86a89420 Wrap text. 2015-01-22 09:12:18 +09:00
Bruce Sutherland
871077c81c Show requested URI as suggested by untitaker. 2015-01-21 20:52:42 +09:00