Merge branch '2.2.x'
This commit is contained in:
commit
ed5b240417
4 changed files with 16 additions and 10 deletions
|
|
@ -11,11 +11,9 @@ Unreleased
|
||||||
Version 2.2.3
|
Version 2.2.3
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
Unreleased
|
Released 2023-02-15
|
||||||
|
|
||||||
- Autoescaping is now enabled by default for ``.svg`` files. Inside
|
- Autoescape is enabled by default for ``.svg`` template files. :issue:`4831`
|
||||||
templates this behavior can be changed with the ``autoescape`` tag.
|
|
||||||
:issue:`4831`
|
|
||||||
- Fix the type of ``template_folder`` to accept ``pathlib.Path``. :issue:`4892`
|
- Fix the type of ``template_folder`` to accept ``pathlib.Path``. :issue:`4892`
|
||||||
- Add ``--debug`` option to the ``flask run`` command. :issue:`4777`
|
- Add ``--debug`` option to the ``flask run`` command. :issue:`4777`
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,14 @@ the ``--debug`` option.
|
||||||
* Debugger is active!
|
* Debugger is active!
|
||||||
* Debugger PIN: 223-456-919
|
* Debugger PIN: 223-456-919
|
||||||
|
|
||||||
|
The ``--debug`` option can also be passed to the top level ``flask`` command to enable
|
||||||
|
debug mode for any command. The following two ``run`` calls are equivalent.
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ flask --app hello --debug run
|
||||||
|
$ flask --app hello run --debug
|
||||||
|
|
||||||
|
|
||||||
Watch and Ignore Files with the Reloader
|
Watch and Ignore Files with the Reloader
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
|
||||||
|
|
@ -47,17 +47,17 @@ Debug Mode
|
||||||
|
|
||||||
The :data:`DEBUG` config value is special because it may behave inconsistently if
|
The :data:`DEBUG` config value is special because it may behave inconsistently if
|
||||||
changed after the app has begun setting up. In order to set debug mode reliably, use the
|
changed after the app has begun setting up. In order to set debug mode reliably, use the
|
||||||
``--debug`` option on the ``flask run`` command. ``flask run`` will use the interactive
|
``--debug`` option on the ``flask`` or ``flask run`` command. ``flask run`` will use the
|
||||||
debugger and reloader by default in debug mode.
|
interactive debugger and reloader by default in debug mode.
|
||||||
|
|
||||||
.. code-block:: text
|
.. code-block:: text
|
||||||
|
|
||||||
$ flask --app hello run --debug
|
$ flask --app hello run --debug
|
||||||
|
|
||||||
Using the option is recommended. While it is possible to set :data:`DEBUG` in your
|
Using the option is recommended. While it is possible to set :data:`DEBUG` in your
|
||||||
config or code, this is strongly discouraged. It can't be read early by the ``flask run``
|
config or code, this is strongly discouraged. It can't be read early by the
|
||||||
command, and some systems or extensions may have already configured themselves based on
|
``flask run`` command, and some systems or extensions may have already configured
|
||||||
a previous value.
|
themselves based on a previous value.
|
||||||
|
|
||||||
|
|
||||||
Builtin Configuration Values
|
Builtin Configuration Values
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ In a separate terminal, activate the virtualenv and run the Flask development se
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ . ./.venv/bin/activate
|
$ . ./.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 polling
|
Go to http://localhost:5000/ and use the forms to submit tasks. You can see the polling
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue