Skip to content
Myr

Merge branch '2.2.x'

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

authored by David Lord · committed by David Lord · parents 88069bd, dd2423e · Browse files · 3 files+3 added−4 removed
This commit

State

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

Diff stats

3 files+3 added−4 removed

  • tests:+0 added−1 removed
  • other:+3 added−3 removed

3 files+3 added−4 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
modified:tests/test_reqctx.py-1 removed
225 unmodified lines
226 assert not flask.current_app227228229def test_session_dynamic_cookie_name():230230 # This session interface will use a cookie with a different name if the231 # requested url ends with the string "dynamic_cookie"232 class PathAwareSessionInterface(SecureCookieSessionInterface):233 def get_cookie_name(self, app):
92 unmodified lines
modified:.pre-commit-config.yaml+1 added-1 removed