Skip to content
Myr

Merge pull request #4960 from owgreen/fix_appfactories_doc

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

Fix appfactories doc

authored by David Lord · committed by GitHub · parents 39fc0c6, 9abe281 · 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
89 unmodified lines
90To run such an application, you can use the :command:`flask` command:9192.. code-block:: text9394 $ flask run --app hello run94 $ flask --app hello run9596Flask will automatically detect the factory if it is named97``create_app`` or ``make_app`` in ``hello``. You can also pass arguments98to the factory like this:99100.. code-block:: text101102 $ flask run --app hello:create_app(local_auth=True)``102 $ flask --app hello:create_app(local_auth=True) run``103104Then the ``create_app`` factory in ``myapp`` is called with the keyword105argument ``local_auth=True``. See :doc:`/cli` for more detail.106
12 unmodified lines