kaushik kothiya
61fd6026d1
Wrong variable name use
...
File upload section upload_file function in file request parameter variable name is "file". but file save method in secure_filename function in use "f.filename".
2021-08-05 08:52:42 -07:00
Frank Yu
2b794fd1ca
Update docs of rendering templates ( #4153 )
...
* Update docs of rendering templates
* Improve the grammar
Co-authored-by: Grey Li <withlihui@gmail.com>
2021-06-18 10:10:29 +08:00
Rafael Aviles
da7ddcaf80
Use escape function in return statement for username and subpath.
2021-05-14 13:23:34 -07:00
Grey Li
c0c0518b50
Improve the wording of using FLASK_APP
2021-05-10 22:58:19 -07:00
David Lord
a37c949ff8
Merge remote-tracking branch 'origin/1.1.x' into release-2.0.0rc1
2021-04-16 08:37:56 -07:00
kangetsu121
ae9bd3bd34
fix a broken link
2021-03-16 16:30:54 +00:00
David Lord
d81e5f8b6c
Merge branch '1.1.x'
2020-11-04 18:25:37 -08: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
Ebram Shehata
0d0d3bbd1d
Update quickstart.rst ( #3767 )
2020-09-25 16:52:00 -07:00
David Lord
6a152a111c
rewrite debugging docs, move to separate page
2020-07-28 11:20:34 -07: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
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
c0c76bd651
remove Python 2 from docs
2020-04-04 12:05:44 -07:00
David Lord
4e98cf6511
move html escaping to dedicated section
2020-04-02 12:49:00 -07:00
Peter G Kritikos
58c9794260
Move HTML escaping example back to Variable Rules.
...
Demonstration of markupsafe's escape function was in the Minimal
Application example, but the minimal example does not accept user
input.
2020-03-04 18:50:36 -05:00
David Lord
9e827f6cad
Merge remote-tracking branch 'origin/1.1.x'
2020-02-10 18:29:43 -08:00
Grey Li
8e62a33cff
add import for escape in quickstart
...
import escape from markupsafe instead of flask
2020-02-10 17:53:11 -08:00
Grey Li
459abe1cea
Use https for pallets URL
2019-11-19 09:32:35 -08:00
Grey Li
66a28f0f28
Replace old pocoo links everywhere
...
pocco.org -> palletsprojects.com
2019-11-19 09:32:35 -08:00
David Lord
c71de17d1d
rewrite the development server docs
2019-11-18 18:02:12 -08:00
David Lord
b0af51baf4
Merge pull request #3391 from pallets/explain-escape
...
explain escape at top of quickstart
2019-10-12 19:03:34 -07:00
David Lord
e3be566d76
explain escape at top of quickstart
...
* introduce escape, and explain why it's omitted in examples
* clean up imports in examples
2019-10-12 18:53:47 -07:00
David Lord
d5a739fae5
Merge branch '1.0.x' into 1.1.x
2019-09-23 08:38:11 -07:00
David Lord
4504c6d7b8
update patterns, snippets, extensions docs
2019-09-23 08:19:40 -07:00
David Lord
ff0c92a1c7
Merge branch '1.0.x'
2019-06-23 16:57:52 -07:00
David Lord
363741ec69
fix docks linkcheck
2019-06-23 15:37:51 -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
316caad5db
Merge branch '1.0.x'
2019-05-16 12:18:36 -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
David Baumgold
3b6d1ecd24
fix RST line too long
2019-05-06 11:11:32 -04: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
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
David Lord
05644138fc
split code and output
2018-09-21 06:05:52 -07:00
Tom Busby
d75c3c253e
Make script output into comments to not break syntax highlighting
...
http://flask.pocoo.org/docs/1.0/quickstart/#url-building
In the URL Building section of the quickstart, the script output is shown right after the code.
This breaks syntax highlighting for the whole code-block. To fix this, I have made the output into comments.
2018-09-19 23:42:35 +02:00
Grey Li
95008cf43d
Add prefix for all commands in documentation ( #2877 )
...
* Add prefix for commands in docs
* Add prefix for commands in example's README
2018-09-09 17:41:56 +09:00
Daiana Marasquin
fce4f839e2
fix syntax error and typo in quickstart.rst
2018-04-29 14:51:13 -07:00
David Lord
7ccc8fb877
rewrite quickstart Unique URLs section
2018-02-24 08:03:30 -08:00
David Lord
b2de7b49a7
clean up FLASK_ENV docs [ci skip]
2018-01-10 15:46:11 -08:00
Armin Ronacher
a1afc8f1a7
Add Support for FLASK_ENV ( #2570 )
...
This introduces environments to Flask
2018-01-06 17:07:56 +01:00
Vladimir Kroz
2c94dd3a86
Fix code example for HTTP Methods
...
`return` is required to make 'http methods' example work
2017-12-05 17:59:04 +01:00
David Lord
d590d6024d
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
Levi Roth
63d6106d87
Added documentation for PowerShell environment variables
2017-05-23 14:30:39 -04:00
Tully Rankin
88e880ed42
Removed the version number out of the documenation link to Werkzeug.
2017-05-22 12:19:52 -07:00
Tully Rankin
1a3a9dcefb
Added link to using Werkzeug debugger in quickstart documentation.
2017-05-22 12:14:52 -07:00
David Lord
35428d04a8
wrap lines
...
tighten up wording
remove any converter from quickstart
use correct rst code syntax
2017-05-11 22:31:19 -07:00
Xephyr826
49e263937a
Improve Routing section
...
Edited the entire section for clarity and concision. I rewrote sentences
to make them shorter and to reduce ambiguity.
Added a code sample to show the path converter type
Removed the HTTP method overview. Although it was well written, the
overview wasn't necessary in the quickstart. Readers can easily find an
overview elsewhere.
2017-05-10 22:38:22 -07:00
Jan Ferko
7664e605ba
Use print function in quickstart ( #2204 )
...
Example in URL Building section uses `print` statement
instead of `print` function, which causes syntax error
when example is run on Python 3.
2017-03-13 13:58:24 +01:00