Skip to content
Myr

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

4 files+16 added−10 removed

modified:docs/cli.rst+8 added
101 unmodified lines
102 * Restarting with inotify reloader103 * Debugger is active!104 * Debugger PIN: 223-456-919105106The ``--debug`` option can also be passed to the top level ``flask`` command to enable107debug mode for any command. The following two ``run`` calls are equivalent.108109.. code-block:: console110111 $ flask --app hello --debug run112 $ flask --app hello run --debug113114115Watch and Ignore Files with the Reloader116~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~117118When using debug mode, the reloader will trigger whenever your Python code or imported
438 unmodified lines
modified:docs/config.rst+5 added-5 removed
45 unmodified lines
46----------4748The :data:`DEBUG` config value is special because it may behave inconsistently if49changed 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 interactive51debugger and reloader by default in debug mode.50``--debug`` option on the ``flask`` or ``flask run`` command. ``flask run`` will use the51interactive debugger and reloader by default in debug mode.5253.. code-block:: text5455 $ flask --app hello run --debug5657Using the option is recommended. While it is possible to set :data:`DEBUG` in your58config or code, this is strongly discouraged. It can't be read early by the ``flask run``59command, and some systems or extensions may have already configured themselves based on60a previous value.58config 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 configured60themselves based on a previous value.616263Builtin Configuration Values64----------------------------
716 unmodified lines
modified:examples/celery/README.md+1 added-1 removed
modified:CHANGES.rst+2 added-4 removed
9 unmodified lines
1011Version 2.2.312-------------1314Unreleased14Released 2023-02-151516- 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`1920
1407 unmodified lines