forked from orbit-oss/flask
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:
parent
095651be9e
commit
5d8e35653f
6 changed files with 31 additions and 118 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue