1
0
mirror of https://github.com/django/django.git synced 2025-10-25 14:46:09 +00:00

Fixed #360 -- runserver now takes optional 'ip:port' in addition to 'port'. Thanks, benno@jeamland.net

git-svn-id: http://code.djangoproject.com/svn/django/trunk@539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty
2005-08-19 21:23:56 +00:00
parent 8d6c276328
commit 00c6acaaf3
4 changed files with 30 additions and 11 deletions

View File

@@ -636,8 +636,8 @@ class AdminMediaHandler:
start_response(status, headers.items())
return output
def run(port, wsgi_handler):
server_address = ('', port)
def run(addr, port, wsgi_handler):
server_address = (addr, port)
httpd = WSGIServer(server_address, WSGIRequestHandler)
httpd.set_app(wsgi_handler)
httpd.serve_forever()