refactor lazy loading

Remove the `--eager-loading/--lazy-loading` options and the
`DispatchingApp` middleware. The `run` command handles loading
exceptions directly. The reloader always prints out tracebacks
immediately and always defers raising the error.
This commit is contained in:
David Lord 2022-08-01 09:13:01 -07:00
parent 095651be9e
commit 5d8e35653f
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
6 changed files with 31 additions and 118 deletions

View file

@ -46,7 +46,7 @@ is with the ``-app`` option.
.. code-block:: text
$ flask --app hello run
* Serving Flask app 'hello' (lazy loading)
* Serving Flask app 'hello'
* Running on http://127.0.0.1:5000 (Press CTRL+C to quit)
.. admonition:: Application Discovery Behavior
@ -110,7 +110,7 @@ To enable all development features, set the ``--env`` option to
.. code-block:: text
$ flask --app hello --env development run
* Serving Flask app 'hello' (lazy loading)
* Serving Flask app 'hello'
* Environment: development
* Debug mode: on
* Running on http://127.0.0.1:5000 (Press CTRL+C to quit)