Skip to content
Myr

Update Flask.run signature, note defaults.

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

authored by Ron DuPlain · committed by Ron DuPlain · parent 46e7bc7 · Browse files · 1 file+5 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

1 file+5 added−4 removed

  • other:+5 added−4 removed

1 file+5 added−4 removed

modified:flask/app.py+5 added-4 removed
662 unmodified lines
663 # easier add new variables in context processors without breaking664 # existing views.665 context.update(orig_ctx)666667 def run(self, host='127.0.0.1', port=5000, debug=None, **options):667 def run(self, host=None, port=None, debug=None, **options):668 """Runs the application on a local development server. If the669 :attr:`debug` flag is set the server will automatically reload670 for code changes and show a debugger in case an exception happened.671
11 unmodified lines
683 Setting ``use_debugger`` to `True` without being in debug mode684 won't catch any exceptions because there won't be any to685 catch.686687 :param host: the hostname to listen on. set this to ``'0.0.0.0'``688 to have the server available externally as well.689 :param port: the port of the webserver687 :param host: the hostname to listen on. Set this to ``'0.0.0.0'`` to688 have the server available externally as well. Defaults to689 ``'127.0.0.1'``.690 :param port: the port of the webserver. Defaults to ``5000``.691 :param debug: if given, enable or disable debug mode.692 See :attr:`debug`.693 :param options: the options to be forwarded to the underlying694 Werkzeug server. See
839 unmodified lines