Commit graph

149 commits

Author SHA1 Message Date
Markus Heidelberg
3d03098a97 Abort if the instance folder cannot be created
According to the comment, the instance folder should exist in any case.
But a PermissionError was ignored silently.

Since Python 3.9 is the minimum required version, it is safe to use
"exist_ok" added in Python 3.2 and avoid exception handling.
2026-01-27 09:18:37 +01:00
David Lord
22c48a738b
Merge remote-tracking branch 'origin/stable' 2024-11-13 08:43:48 -08:00
David Lord
a9b99b3489
update example project metadata 2024-11-01 18:00:39 -07:00
David Lord
8aa161a437
add sqlite datetime converter 2024-11-01 17:18:52 -07:00
David Lord
df201ed152
fix js example test 2024-11-01 16:44:17 -07:00
JamesMRamm
823e279e0d
Update pyproject.toml
Correction to Documentation URL
2024-05-02 17:57:34 +10:00
David Lord
54e05a2824
use ruff linter and formatter 2023-11-15 12:14:37 -08:00
David Lord
54ff9b2972
use ruff linter and formatter 2023-11-09 10:27:01 -08:00
Iztok Fister Jr
541bc8dfc2
examples/javascript: replace obsolete link (#5287) 2023-10-06 17:36:39 -07:00
David Lord
46b328854a
switch examples to flit 2023-06-27 14:13:56 -07:00
David Lord
ca12e8ebb7
update dependencies 2023-05-02 07:17:52 -07:00
David Lord
2e8fe7b2f2
drop support for python 3.7 2023-04-20 11:09:55 -07:00
David Lord
9cb1a7a52d
blinker is required, signals are always available 2023-04-13 07:39:24 -07:00
David Lord
5cdfeae2e8
Merge branch '2.2.x' 2023-02-23 15:58:29 -08:00
David Lord
736b5f9ff8
update dependencies 2023-02-23 15:58:21 -08:00
David Lord
ed5b240417
Merge branch '2.2.x' 2023-02-15 14:48:09 -08:00
David Lord
24df8fc89d
show 'run --debug' in docs
Reverts commit 4d69165ab6. Now that a
release has this option, it's ok to show it in the docs. It had been
reverted because the 2.2.x docs showed it before 2.2.3 was released.
2023-02-15 14:33:32 -08:00
David Lord
a18ae3d752
Merge branch '2.2.x' 2023-02-10 15:06:38 -08:00
David Lord
3f195248dc
add celery example 2023-02-10 09:16:53 -08:00
David Lord
99b34f7148
move and update flake8 config 2023-01-20 13:42:50 -08:00
David Lord
3a35977d5f
stop ignoring flake8 e402 2023-01-19 06:35:15 -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
David Lord
74e5263c88
new run debug docs 2022-12-29 09:52:18 -08:00
David Lord
4d69165ab6
revert run debug docs 2022-12-29 09:51:34 -08:00
Grey Li
bd26928fdb
Prefer flask run --debug in docs 2022-12-24 15:24:49 -07:00
David Lord
30427a2090
remove FLASK_ENV from docs 2022-08-01 15:11:35 -07:00
David Lord
c9e000b9ce
with_appcontext lasts for the lifetime of the click context 2022-06-17 11:52:01 -07:00
David Lord
ab1fbef29a
prefer --app over FLASK_APP in docs 2022-06-17 09:26:26 -07:00
David Lord
6f6e3289da
remove javascript fetch polyfill 2022-06-08 07:30:29 -07:00
David Lord
81c7ff7f8d
update tests for relative redirects 2022-03-25 11:48:26 -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
Elahi-cs
3127c304ec Small SQL formatting fix 2021-07-07 19:41:11 +02:00
David Lord
52adf2ec21
rename default branch in files 2021-05-11 15:18:41 -07:00
David Lord
024f0d384c
move package metadata to setup.cfg 2020-04-04 14:50:21 -07:00
David Lord
524fd0bc8c
apply pyupgrade 2020-04-04 12:10:00 -07:00
Grey Li
ef434ea998
Replace old pocoo links everywhere
pocco.org -> palletsprojects.com
2019-11-19 09:32:35 -08:00
David Lord
b05a685a03
Merge branch '1.0.x' 2019-07-01 10:54:31 -07:00
Anthony Sottile
a5ecdfa7a5
Fixes for PEP451 import loaders and pytest 5.x
- pytest 5.x drops python2 compatibility and therefore only implements PEP 451
- pytest 5.x made the repr of `ExcInfo` less confusing (fixed tests depending
  on the old format)
2019-07-01 10:43:06 -07:00
David Lord
53c893b646
fix string concats left over by black 2019-06-01 09:22:20 -07:00
David Lord
43483683b2
apply reorder-python-imports pre-commit config 2019-06-01 09:07:20 -07:00
David Baumgold
025589ee76 Reformat with black
https://github.com/python/black
2019-05-06 16:28:58 -04:00
Grey Li
21b0aa6dd8 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
Gerald Senarclens de Grancy
d0088e63d8 add init-db call to flask tutorial
otherwise the user is confronted with an unpleasant error
message when accessing the dev server the first time
2018-06-13 20:51:50 +02:00
Hsiaoming Yang
64ac1b0d36 Revert "Close tag on js examples."
This reverts commit b7f6ff4f0b.
2018-04-21 15:12:06 +09:00
Hsiaoming Yang
b7f6ff4f0b
Close tag on js examples. 2018-04-21 14:48:15 +09:00
David Lord
1e84c67beb
clean up js example 2018-04-12 12:17:14 -07:00
David Lord
fce1885f76
add javascript ajax example 2018-04-12 11:06:02 -07:00
David Lord
c3dd7b8e4c
rewrite tutorial docs and example 2018-04-09 00:53:25 -07:00
David Lord
310fbfcf64
revert copyright year to project start
add copyright header to files
2018-02-08 12:43:30 -08:00
David Lord
ffca68fc86
fix windows failure to remove temp file 2018-01-05 12:36:01 -08:00