Merge branch '2.2.x'
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Lord · committed by David Lord · parents aa040c0, 6a392af · Browse files · 4 files·+16 added−10 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+16 added−10 removed
- other:+16 added−10 removed
Provenance
- Commit
ed5b240- Tree
c93f3b2- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent 1
aa040c0- Parent 2
6a392af
4 files changed+16 added−10 removed
modified:docs/cli.rst+8 added
101 unmodified lines102 * Restarting with inotify reloader103 * Debugger is active!104 * Debugger PIN: 223-456-919105 106+The ``--debug`` option can also be passed to the top level ``flask`` command to enable107+debug mode for any command. The following two ``run`` calls are equivalent.108 109+.. code-block:: console110+111+ $ flask --app hello --debug run112+ $ flask --app hello run --debug113+114+115 Watch and Ignore Files with the Reloader116 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~117 118 When using debug mode, the reloader will trigger whenever your Python code or imported438 unmodified linesmodified:docs/config.rst+5 added-5 removed
45 unmodified lines46 ----------47 48 The :data:`DEBUG` config value is special because it may behave inconsistently if49 changed after the app has begun setting up. In order to set debug mode reliably, use the50-``--debug`` option on the ``flask run`` command. ``flask run`` will use the interactive51-debugger and reloader by default in debug mode.50+``--debug`` option on the ``flask`` or ``flask run`` command. ``flask run`` will use the51+interactive debugger and reloader by default in debug mode.52 53 .. code-block:: text54 55 $ flask --app hello run --debug56 57 Using the option is recommended. While it is possible to set :data:`DEBUG` in your58-config or code, this is strongly discouraged. It can't be read early by the ``flask run``59-command, and some systems or extensions may have already configured themselves based on60-a previous value.58+config or code, this is strongly discouraged. It can't be read early by the59+``flask run`` command, and some systems or extensions may have already configured60+themselves based on a previous value.61 62 63 Builtin Configuration Values64 ----------------------------716 unmodified linesmodified:examples/celery/README.md+1 added-1 removed
17 unmodified lines181920212222232425262717 unmodified linesIn a separate terminal, activate the virtualenv and run the Flask development server.
```shell$ . ./.venv/bin/activate$ flask -A task_app --debug run$ flask -A task_app run --debug```
Go to http://localhost:5000/ and use the forms to submit tasks. You can see the pollingrequests in the browser dev tools and the Flask logs. You can see the tasks submittingand completing in the Celery logs.modified:CHANGES.rst+2 added-4 removed
9 unmodified lines10 11 Version 2.2.312 -------------13 14-Unreleased14+Released 2023-02-1515 16-- Autoescaping is now enabled by default for ``.svg`` files. Inside17- templates this behavior can be changed with the ``autoescape`` tag.18- :issue:`4831`16+- Autoescape is enabled by default for ``.svg`` template files. :issue:`4831`17 - Fix the type of ``template_folder`` to accept ``pathlib.Path``. :issue:`4892`18 - Add ``--debug`` option to the ``flask run`` command. :issue:`4777`19 20 1407 unmodified lines