Browse Source

In Flask.run, now when the host/port argument is None, it will use its default value.

pull/341/merge
Joe Esposito 13 years ago committed by Ron DuPlain
parent
commit
46e7bc7083
  1. 4
      flask/app.py

4
flask/app.py

@ -695,6 +695,10 @@ class Flask(_PackageBoundObject):
information. information.
""" """
from werkzeug.serving import run_simple from werkzeug.serving import run_simple
if host is None:
host = '127.0.0.1'
if port is None:
port = 5000
if debug is not None: if debug is not None:
self.debug = bool(debug) self.debug = bool(debug)
options.setdefault('use_reloader', self.debug) options.setdefault('use_reloader', self.debug)

Loading…
Cancel
Save