flask uses 127.0.0.1 as host by default now. stupid chrome.

This commit is contained in:
Armin Ronacher 2010-04-20 21:44:52 +02:00
parent 260b4dfe61
commit 00f87f679c
2 changed files with 3 additions and 16 deletions

View file

@ -434,7 +434,7 @@ class Flask(object):
for func in self.template_context_processors:
context.update(func())
def run(self, host='localhost', port=5000, **options):
def run(self, host='127.0.0.1', port=5000, **options):
"""Runs the application on a local development server. If the
:attr:`debug` flag is set the server will automatically reload
for code changes and show a debugger in case an exception happened.