Commit graph

1538 commits

Author SHA1 Message Date
Bo Bayles
3fd24c1f6f Fix copy/paste error in wsgi-standalone.rst 2022-04-25 10:55:30 -05:00
MeViMo
4dd14ed039 Syntax error in testing.rst 2022-04-13 18:49:51 +02:00
MeViMo
19d7a0ef78
docs pass cli args as kwarg to test runner 2022-04-08 11:03:06 -07:00
LarsMoons
e3c014f9aa
docs "Returning API Errors as JSON" return correct status code 2022-04-08 10:57:02 -07:00
David Lord
e75d575361
windows env vars are uppercase 2022-03-25 12:07:45 -07:00
David Lord
4eb5e9455b
more from_prefixed_env features
* support nested dict access with "__" separator
* don't specify separator in prefix
* catch exceptions for any loads function
2022-03-25 11:54:45 -07:00
pgjones
08a283af5e
Allow loading of environment variables into the config
This new method will pick out any environment variables with a certain
prefix and place them into the config named without the prefix. This
makes it easy to use environment variables to configure the app as is
now more popular than when Flask started.

The prefix should ensure that the environment isn't polluted and the
config isn't polluted by environment variables.

I've followed the dynaconf convention of trying to parse the
environment variable and then falling back to the raw value if parsing
fails.
2022-03-25 11:54:03 -07:00
David Lord
81c7ff7f8d
update tests for relative redirects 2022-03-25 11:48:26 -07:00
octopoulpe
d80f41f57d
Update errorhandling.rst 2022-03-22 10:29:00 +01: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
Mickaël Guérin
beae1249f7
add exclude-patterns option to flask run 2022-02-09 12:44:03 -08:00
David Lord
e37e87140e
Merge branch '2.0.x' 2022-02-09 07:37:43 -08:00
Cameron Dahl
08ad8aabfe
Remove X-XSS-Protection suggestion 2022-01-14 08:32:36 -08:00
otherJL0
afe77feef3
Adding Fish commands to docs 2022-01-14 08:26:50 -08:00
David Lord
0fb5c2f034
Merge branch '2.0.x' 2021-12-22 20:02:52 -07:00
Grey Li
0122a4f34f
Fix the command for checking port on macOS in server docs 2021-12-22 18:59:28 -07:00
David Lord
edac7e3a56
Merge branch '2.0.x' 2021-12-22 15:21:31 -08:00
Jürgen Gmach
f16524ea1d
fix typo 2021-12-16 04:28:09 +01:00
David Lord
2e10fc24a1
document address already in use error 2021-11-16 09:04:18 -08:00
David Lord
9fe21310bb
replace nbsp characters 2021-11-16 08:34:55 -08:00
David Lord
ea66c68553
Merge branch '2.0.x' 2021-11-15 13:26:06 -08:00
David Lord
b7501776a1
remove deprecated safe_join 2021-11-12 09:52:16 -08:00
David Lord
df806c8035
update docs about gevent/eventlet/greenlet 2021-11-11 18:32:07 -08:00
David Lord
1b552d0b01
remove ContextVar compat 2021-11-11 16:12:08 -08:00
David Lord
e609dddd60
drop Python 3.6 2021-11-11 16:11:43 -08:00
Chenwei Xiao
a2e79eefc9 Correct the actual unescaped character
`»` should be unescaped to `»` after `striptags`.

Ref: https://flask.palletsprojects.com/en/2.0.x/api/#flask.Markup.striptags
2021-11-07 10:40:52 +08:00
Ryan Nevius
225ff3ea6c Fix example SECRET_KEY generation code
Removes the extra `)` in: `print(secrets.token_hex())`
2021-10-18 10:41:39 +02:00
karintou8710
21def4e05c Fixes old print statement in some documentation pages 2021-10-16 02:04:07 +09:00
Kevin Kirsche
58a08a1d73
use secrets instead of os.urandom 2021-10-13 08:12:51 -07:00
Seth Rutner
1a40d9b976
fix grammar in links to app and request context 2021-10-01 10:16:20 -07:00
Kasper Primdal Lauritzen
3a78f501e9
Fix broken link to Flask-WTF 2021-10-01 09:57:25 -07:00
Kevin Kirsche
9d9108fe25
fix: typo docs/debugging.rst:72
docs/debugging.rst:72: controled ==> controlled
2021-09-14 12:29:42 -04:00
Mindiell
e1dce5c39a
Fix typo in docs (#4261) 2021-09-08 10:00:36 +02:00
nabbisen
fafc132dcb
Update cherokee links in docs/deploying (#4249) 2021-08-29 09:21:36 -04:00
Grey Li
84aa8706c0
Remove the mention of Flask-Uploads in uploading docs 2021-08-14 05:10:45 -07:00
Angeline
5119657547
safer check for existing user in tutorial
Co-authored-by: David Lord <davidism@gmail.com>
2021-08-05 18:01:55 -07:00
David Lord
a0afb6f375
Merge pull request #4190 from yuxiaoy1/docs
Improve code example of api & jQuery docs
2021-08-05 16:55:51 -07:00
kaushik kothiya
858cc9cace
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
Elahi-cs
3127c304ec Small SQL formatting fix 2021-07-07 19:41:11 +02:00
Frank Yu
85c35bd615
Fix link in ASGI docs (#4191)
* Fix link in ASGI docs

* Improve the wording of ASGI docs

Co-authored-by: Grey Li <withlihui@gmail.com>
2021-07-07 19:26:24 +08:00
Frank Yu
29c09a92c4
Omit the type attribute of script tag 2021-07-07 15:18:04 +08:00
Frank Yu
922e91b278
Omit the type attribute of script tag 2021-07-07 15:16:29 +08:00
Grey Li
c224832acc Fix typo in docs/views.rst 2021-06-26 22:15:43 +08:00
Frank Yu
35eb582bf3
Change flask.xxx to plain version in testing docs 2021-06-20 23:20:14 +08:00
David Lord
d426b58e57
Merge pull request #4155 from yuxiaoy1/patch-1
Fix bad link in templating docs
2021-06-20 06:45:54 -07:00
Frank Yu
7b696e076a
Update testing.rst 2021-06-18 22:18:15 +08:00
Frank Yu
5fa7d2efe7
Update templating.rst 2021-06-18 20:15:02 +08:00
Frank Yu
f353d126d1
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
Hugo Montenegro
92bed66194
Update celery.rst
small typo
2021-06-08 19:01:07 +02:00