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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user