David Lord
26bb6b1c56
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
David Lord
d81e5f8b6c
Merge branch '1.1.x'
2020-11-04 18:25:37 -08:00
Sarthak Vineet Kumar
024417694e
updated doc for mod_wsgi ( #3751 )
...
Co-authored-by: Sarthak <sarthak@MacBook.local>
2020-11-04 18:20:36 -08:00
Viet Hung Nguyen
d37a8a0851
mkstemp returns a file descriptor ( #3809 )
2020-10-31 20:09:57 -07:00
Bart Broere
28467dbcef
removing outdated xhtml information ( #3802 )
2020-10-21 14:13:41 -07:00
Grey Li
6219702269
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
Jamiu Salimon
096ace23ba
Update the signature of the teardown function ( #3730 )
...
Co-authored-by: David Lord <davidism@gmail.com>
2020-10-15 14:02:54 -07:00
Henry Kobin
426d0e4e9a
updated Sentry link ( #3788 )
2020-10-11 19:15:19 -07:00
sblondon
b5859ea9eb
aesthetic: add a space after a comma ( #3771 )
2020-09-28 07:21:13 -07:00
miquelvir
cd5be90d5b
fix grammar ( #3769 )
2020-09-28 06:21:59 -07:00
Ebram Shehata
0d0d3bbd1d
Update quickstart.rst ( #3767 )
2020-09-25 16:52:00 -07:00
girst
511649e747
Correct Sentry advertisement (not Free Software) ( #3758 )
2020-09-15 09:20:10 -07:00
Grey Li
f4861793fd
Fix bad intersphinx link
2020-08-07 19:01:42 +08:00
David Lord
9a960a4ff0
Merge pull request #3669 from ebonnecab/error-docs
...
Error Docs Revision/Consolidation
2020-07-28 14:17:36 -07:00
David Lord
6a152a111c
rewrite debugging docs, move to separate page
2020-07-28 11:20:34 -07:00
David Lord
998ef2208c
reduce section on http status codes
...
formatting in sentry section
2020-07-28 11:07:02 -07:00
David Lord
018e1060af
adjust header levels and spacing
...
use code-block consistently
2020-07-28 10:46:22 -07:00
David Lord
7044235c78
rewrite external debuggers section
2020-07-28 07:59:19 -07:00
David Lord
28119de5ee
normalize sentence spacing
2020-07-28 07:57:24 -07:00
David Lord
f8aec17365
Merge pull request #3704 from jackwardell/no-self-required
...
swapping self.assert_equal for assert
2020-07-28 07:10:13 -07:00
jackwardell
5653184b1f
swapping self.assert_equal for assert
...
self.assert_equal is not in a class and is ambiguous. Beginners might copy and paste this example and not understand it.
2020-07-28 14:23:00 +01:00
Ebonne Cabarrus
13b0a37b5e
more changes to consolidated error handling docs
2020-07-24 09:25:07 -07:00
jackwardell
79bd55cedf
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
Grey Li
ee1df9803e
Update Discord invite links
2020-07-21 12:11:17 +08:00
David Lord
0c8c96122b
fix typo
2020-07-08 08:26:21 -07:00
Armin Ronacher
40d6d107c5
Some small doc fixes
2020-07-08 15:53:43 +02:00
Grey Li
4ea0e07074
Improve wording of tip for Unique URLs chapter
2020-07-05 08:25:48 +08:00
Deep R. Ode
f133e8e284
Added very small clarification to quickstart.rst
2020-07-03 15:55:56 +05:30
Sergei
298cf90396
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
Leonardo Giordani
7b33b4a095
Simplified version of file-based database
2020-06-23 15:14:03 +01:00
Leonardo Giordani
ad89e0e0b9
Fixed trailing whitespace
2020-06-23 15:06:37 +01:00
Leonardo Giordani
2de5465058
Changed example DATABASE_URI values
2020-06-23 14:56:51 +01:00
Leonardo Giordani
002a8bdea8
Removed misleading DEBUG variable from examples
2020-06-21 09:29:45 +01:00
iomintz
1350049c9d
[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
David Lord
0cfdbe5648
Merge pull request #3603 from jeffwidman/patch-1
...
Fix docs link for Flask-Uploads
2020-06-07 17:03:35 -07:00
David Lord
20518fcaab
Merge remote-tracking branch 'origin/1.1.x'
2020-06-07 16:50:17 -07:00
David Lord
765ede5baa
expand section on copy/paste security
2020-06-07 16:45:31 -07:00
Kai Chen
e5ff2452fb
add section on copy/paste security
2020-06-05 08:51:21 -07:00
David Lord
b1816e2747
use pip-compile to pin dev requirements
2020-05-23 14:03:11 -07:00
Jeff Widman
1d52c00957
Fix docs link for Flask-Uploads
2020-05-08 12:42:52 -07:00
David Lord
042754ba4a
use ast to parse FLASK_APP
...
enables keyword arguments to factory functions
2020-04-07 17:54:51 -07:00
David Lord
f2a8087cf5
deprecate passing script_info to factory
2020-04-07 15:54:36 -07:00
David Lord
46f2aa7821
update docs requirements
...
remove duplicate docs
2020-04-07 14:39:18 -07:00
David Lord
23fb6f8065
update json docs
2020-04-07 13:37:14 -07:00
David Lord
187cfe90b8
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
1de5873d66
remove unused ref directives
...
replace page refs with doc directives
2020-04-04 12:57:14 -07:00
David Lord
f5038c4c39
f-strings everywhere
2020-04-04 12:10:00 -07:00
David Lord
67bb43b738
apply pyupgrade
2020-04-04 12:10:00 -07:00
David Lord
c0c76bd651
remove Python 2 from docs
2020-04-04 12:05:44 -07:00
David Lord
793bff721a
Merge branch '1.1.x'
2020-04-03 10:25:51 -07:00