From d8baf9b30e948703f49215a0feba8e6037f75db0 Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Fri, 12 Feb 2010 10:22:22 +0100 Subject: [PATCH] fix #10 & #11. thanks --- gunicorn/management/commands/run_gunicorn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gunicorn/management/commands/run_gunicorn.py b/gunicorn/management/commands/run_gunicorn.py index ab049fd6..36f4e3cf 100644 --- a/gunicorn/management/commands/run_gunicorn.py +++ b/gunicorn/management/commands/run_gunicorn.py @@ -44,7 +44,7 @@ class Command(BaseCommand): addr = bind.split("unix:")[1] else: if ':' in bind: - host, port = host.split(':', 1) + host, port = bind.split(':', 1) if not port.isdigit(): raise CommandError("%r is not a valid port number." % port) port = int(port) @@ -64,7 +64,7 @@ class Command(BaseCommand): print "\nDjango version %s, using settings %r" % (django.get_version(), settings.SETTINGS_MODULE) if isinstance(addr, basestring): - print "Development server is running at unix:/" % addr + print "Development server is running at unix:/%s" % addr else: print "Development server is running at http://%s:%s/" % addr print "Quit the server with %s." % quit_command