flask/docs/patterns
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
..
appdispatch.rst remove unused ref directives 2020-04-04 12:57:14 -07:00
appfactories.rst Add command switch tabs for Bash, CMD and Powershell with sphinx-tabs (#3714) 2020-10-15 14:08:37 -07:00
caching.rst remove unused ref directives 2020-04-04 12:57:14 -07:00
celery.rst Use https for external links wherever possible 2018-10-27 17:58:45 +05:30
deferredcallbacks.rst remove unused ref directives 2020-04-04 12:57:14 -07:00
distribute.rst remove unused ref directives 2020-04-04 12:57:14 -07:00
fabric.rst remove unused ref directives 2020-04-04 12:57:14 -07:00
favicon.rst Migrate various docs links to https (#2180) 2017-02-11 10:43:11 +01:00
fileuploads.rst move send_file and send_from_directory to Werkzeug 2020-11-05 09:27:52 -08:00
flashing.rst remove unused ref directives 2020-04-04 12:57:14 -07:00
index.rst consolidate error handling docs 2020-07-24 09:15:43 -07:00
jquery.rst fix docks linkcheck 2019-06-23 15:37:51 -07:00
lazyloading.rst f-strings everywhere 2020-04-04 12:10:00 -07:00
methodoverrides.rst remove encoding from method override pattern 2019-01-07 13:09:36 -08:00
mongoengine.rst simplify mongoengine doc, redirect from mongokit 2019-01-06 15:42:08 -08:00
packages.rst Add command switch tabs for Bash, CMD and Powershell with sphinx-tabs (#3714) 2020-10-15 14:08:37 -07:00
requestchecksum.rst f-strings everywhere 2020-04-04 12:10:00 -07:00
singlepageapplications.rst pass static_url_path along with static_folder 2020-02-10 18:33:32 -08:00
sqlalchemy.rst remove unused ref directives 2020-04-04 12:57:14 -07:00
sqlite3.rst remove unused ref directives 2020-04-04 12:57:14 -07:00
streaming.rst [docs] streaming contents: use app.response_class 2020-06-17 22:00:35 -05:00
subclassing.rst Rewrite subclassing example with a better use-case. 2016-06-02 15:34:56 -07:00
templateinheritance.rst remove unused ref directives 2020-04-04 12:57:14 -07:00
urlprocessors.rst Fix typo in urlprocessors.rst 2019-08-01 12:58:07 -07:00
viewdecorators.rst remove unused ref directives 2020-04-04 12:57:14 -07:00
wtforms.rst remove unused ref directives 2020-04-04 12:57:14 -07:00