Skip to content
Myr

Update app factory docs (#5671)

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

authored by David Lord · committed by GitHub · parents 04b070f, f51a238 · Browse files · 1 file+2 added−2 removed
This commit

State

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

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/patterns/appfactories.rst+2 added-2 removed
97 unmodified lines
98to the factory like this:99100.. code-block:: text101102 $ flask --app hello:create_app(local_auth=True) run102 $ flask --app 'hello:create_app(local_auth=True)' run103104Then the ``create_app`` factory in ``myapp`` is called with the keyword104Then the ``create_app`` factory in ``hello`` is called with the keyword105argument ``local_auth=True``. See :doc:`/cli` for more detail.106107Factory Improvements108--------------------
10 unmodified lines