Skip to content
Myr

Merge pull request #4980 from pallets/release-2.2.3

Before adoption: this commit came in with the history the project adopted, so no landing records it.

release version 2.2.3

authored by David Lord · committed by GitHub · parents b945f98, 41d4f62 · Browse files · 10 files+26 added−20 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

10 files+26 added−20 removed

  • other:+26 added−20 removed

10 files+26 added−20 removed

modified:docs/tutorial/factory.rst+1 added-1 removed
135 unmodified lines
136follow the tutorial.137138.. code-block:: text139140 $ flask --app flaskr --debug run140 $ flask --app flaskr run --debug141142You'll see output similar to this:143144.. code-block:: text
18 unmodified lines
modified:docs/cli.rst+10 added-2 removed
93 unmodified lines
94the ``--debug`` option.9596.. code-block:: console9798 $ flask --app hello --debug run98 $ flask --app hello run --debug99 * Serving Flask app "hello"100 * Debug mode: on101 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)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
557558Click the *Script path* dropdown and change it to *Module name*, then input ``flask``.559560The *Parameters* field is set to the CLI command to execute along with any arguments.553This example uses ``--app hello --debug run``, which will run the development server in561This example uses ``--app hello run --debug``, which will run the development server in562debug mode. ``--app hello`` should be the import or file with your Flask app.563564If you installed your project as a package in your virtualenv, you may uncheck the565*PYTHONPATH* options. This will more accurately match how you deploy later.
6 unmodified lines
modified:docs/config.rst+6 added-6 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`` 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 --debug run55 $ 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:docs/debugging.rst+2 added-2 removed
41 unmodified lines
42The debugger is enabled by default when the development server is run in debug mode.4344.. code-block:: text4546 $ flask --app hello --debug run46 $ flask --app hello run --debug4748When running from Python code, passing ``debug=True`` enables debug mode, which is49mostly equivalent.50
20 unmodified lines
71which can interfere.7273.. code-block:: text7475 $ flask --app hello --debug run --no-debugger --no-reload75 $ flask --app hello run --debug --no-debugger --no-reload7677When running from Python:7879.. code-block:: python
8 unmodified lines
modified:docs/quickstart.rst+1 added-1 removed
106 unmodified lines
107To enable debug mode, use the ``--debug`` option.108109.. code-block:: text110111 $ flask --app hello --debug run111 $ flask --app hello run --debug112 * Serving Flask app 'hello'113 * Debug mode: on114 * Running on http://127.0.0.1:5000 (Press CTRL+C to quit)115 * Restarting with stat
792 unmodified lines
modified:docs/server.rst+1 added-1 removed
22 unmodified lines
23debug mode.2425.. code-block:: text2627 $ flask --app hello --debug run27 $ flask --app hello run --debug2829This enables debug mode, including the interactive debugger and reloader, and then30starts the server on http://localhost:5000/. Use ``flask run --help`` to see the31available options, and :doc:`/cli` for detailed instructions about configuring and using
84 unmodified lines
modified:examples/celery/README.md+1 added-1 removed
modified:examples/tutorial/README.rst+1 added-1 removed
46 unmodified lines
4748.. code-block:: text4950 $ flask --app flaskr init-db51 $ flask --app flaskr --debug run51 $ flask --app flaskr run --debug5253Open http://127.0.0.1:5000 in a browser.5455
13 unmodified lines
modified:src/flask/__init__.py+1 added-1 removed
40 unmodified lines
41from .templating import render_template_string as render_template_string42from .templating import stream_template as stream_template43from .templating import stream_template_string as stream_template_string4445__version__ = "2.2.3.dev"45__version__ = "2.2.3"464748def __getattr__(name):49 if name == "_app_ctx_stack":
22 unmodified lines
modified:CHANGES.rst+2 added-4 removed
1Version 2.2.32-------------34Unreleased4Released 2023-02-1556- Autoescaping is now enabled by default for ``.svg`` files. Inside7 templates this behavior can be changed with the ``autoescape`` tag.8 :issue:`4831`6- Autoescape is enabled by default for ``.svg`` template files. :issue:`4831`7- Fix the type of ``template_folder`` to accept ``pathlib.Path``. :issue:`4892`8- Add ``--debug`` option to the ``flask run`` command. :issue:`4777`910
1407 unmodified lines