Commit Graph

365 Commits

Author SHA1 Message Date
Pamela Fox 15f2ca2c24
Update appfactories.rst
Remove unneeded backticks
2023-03-31 12:20:27 -07:00
David Lord a18ae3d752
Merge branch '2.2.x' 2023-02-10 15:06:38 -08:00
David Lord d5527264f0
Merge pull request #4968 from pallets/docs-celery
rewrite celery docs, add example application
2023-02-10 09:35:31 -08:00
David Lord 3f195248dc
add celery example 2023-02-10 09:16:53 -08:00
David Lord dca8cf013b
rewrite celery background tasks docs 2023-02-09 10:50:42 -08:00
Maxim G. Ivanov 428d9430bc Fix command-line formatting 2023-02-09 09:38:57 +07:00
David Lord 4ddb3f73ba
Merge branch '2.2.x' 2023-02-07 07:18:54 -08:00
owgreen 9abe28130d
fix doc 2023-02-02 08:57:38 -08:00
David Lord 8f13f5b6d6
update docs and examples for pyproject
setup.py -> pyproject.toml
venv -> .venv
2023-01-18 10:32:51 -08:00
Asif Saif Uddin 1a68768e6b
python 2 style inheritance clean up from docs 2022-12-24 10:31:23 -07:00
David Lord 1d07857b1d
fix typo 2022-08-15 07:29:34 -07:00
tautv 22b6296830
Update javascript.rst
Spelling
2022-08-09 09:45:02 +01:00
David Lord a0458efef6
refactor or remove old docs (#4748) 2022-08-05 11:28:22 -07:00
David Lord e0dad45481
update docs about contexts 2022-07-08 11:13:09 -07:00
David Lord 96d39c87a8
Merge remote-tracking branch 'origin/2.1.x' 2022-07-01 13:32:50 -07:00
hankhank10 abcb6c9677
Update javascript.rst 2022-06-23 05:54:56 -07:00
pgjones 46433e9807
add generate_template and generate_template_string functions 2022-06-18 12:20:53 -07:00
David Lord ab1fbef29a
prefer --app over FLASK_APP in docs 2022-06-17 09:26:26 -07:00
David Lord 2f3c87dcb8
rewrite javascript docs 2022-06-11 13:44:46 -07:00
lecovi 9252be9c9e
docs: new configuration format for celery 2022-05-23 10:16:45 -07:00
Luis Palacios 410a324ec4
remove becomingbig.rst 2022-05-10 09:16:44 -07:00
otherJL0 afe77feef3
Adding Fish commands to docs 2022-01-14 08:26:50 -08:00
karintou8710 21def4e05c Fixes old print statement in some documentation pages 2021-10-16 02:04:07 +09:00
Kasper Primdal Lauritzen 3a78f501e9
Fix broken link to Flask-WTF 2021-10-01 09:57:25 -07:00
Grey Li 84aa8706c0
Remove the mention of Flask-Uploads in uploading docs 2021-08-14 05:10:45 -07:00
Frank Yu 29c09a92c4
Omit the type attribute of script tag 2021-07-07 15:18:04 +08:00
Hugo Montenegro 92bed66194
Update celery.rst
small typo
2021-06-08 19:01:07 +02:00
Grey Li a541c2ac8b Fix view decorators docs 2021-05-21 12:11:03 +00:00
David Lord b473e7c97c
use Jinja's tojson filter 2021-02-01 22:48:09 -08:00
David Lord dc11cdb4a4
move send_file and send_from_directory to Werkzeug
The implementations were moved to Werkzeug, Flask's functions become
wrappers around Werkzeug to pass some Flask-specific values.

cache_timeout is renamed to max_age. SEND_FILE_MAX_AGE_DEFAULT,
app.send_file_max_age_default, and app.get_send_file_max_age defaults
to None. This tells the browser to use conditional requests rather than
a 12 hour cache.

attachment_filename is renamed to download_name, and is always sent if
a name is known.

Deprecate helpers.safe_join in favor of werkzeug.utils.safe_join.

Removed most of the send_file tests, they're tested in Werkzeug.

In the file upload example, renamed the uploaded_file view to
download_file to avoid a common source of confusion.
2020-11-05 09:27:52 -08:00
Grey Li 1035efc7d6
Add command switch tabs for Bash, CMD and Powershell with sphinx-tabs (#3714)
* Enable Sphinx extension sphinx-tabs

* Add command tabs for all export commands

* Add command tabs for all venv commands

Fix trim spaces
2020-10-15 14:08:37 -07:00
miquelvir 598c56c498
fix grammar (#3769) 2020-09-28 06:21:59 -07:00
jackwardell 59b0b85835
consolidate error handling docs
Remove apierrors.rst and errorpages.rst from patterns and integrate the
content into errorhandling.rst, along with other changes and extra
content.
2020-07-24 09:15:43 -07:00
David Lord aab20ad431
fix typo 2020-07-08 08:26:21 -07:00
Armin Ronacher 4a1acc8b5f Some small doc fixes 2020-07-08 15:53:43 +02:00
iomintz 92f648b04e
[docs] streaming contents: use app.response_class
Examples should use app.response_class to encourage code that doesn't need to be changed should the response class be customized later on.
2020-06-17 22:00:35 -05:00
Jeff Widman c432d8b2bc
Fix docs link for Flask-Uploads 2020-05-08 12:42:52 -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
David Lord 7673835b3d
remove Python 2 from docs 2020-04-04 12:05:44 -07:00
David Lord 909b9751ee
Merge remote-tracking branch 'origin/1.1.x' 2020-02-10 18:41:07 -08:00
yingshaoxo 7e068145df
pass static_url_path along with static_folder 2020-02-10 18:33:32 -08:00
David Lord 2659f0a5e6
Merge pull request #3406 from erfanio/f-string-docs
Change docs to use f-strings
2019-11-18 19:09:30 -08:00
Thiago J. Barbalho 4f6b310513
Fix typo 2019-11-02 20:56:35 +00:00
erfanio 07caa44224 Change docs to use f-strings 2019-10-26 17:19:00 +11:00
David Lord 40eadfc52a
Merge branch '1.1.x' 2019-09-23 08:38:29 -07:00
David Lord 746d9181d7
Merge branch '1.0.x' into 1.1.x 2019-09-23 08:38:11 -07:00
David Lord e01b68e7ee
update patterns, snippets, extensions docs 2019-09-23 08:19:40 -07:00
Constantin b839beb23d
fix typo: base on -> based on 2019-08-25 20:33:41 +02:00
Eido95 b33e89935a
docs: Change max content length value to megabyte
16 * 1024 * 1024 = 16 MiB (Mebibyte)
16 * 1000 * 1000 = 16 MB (Megabyte)

The example is in megabytes, not in mebibytes.
2019-08-13 11:02:56 +03:00