Code

Ticket #360: dj360_539.2.diff

File dj360_539.2.diff, 546 bytes (added by fonso, 9 years ago)

Don't explicitly specify the binding address for the server (second try)

Line 
1Index: django/core/management.py
2===================================================================
3--- django/core/management.py   (revision 544)
4+++ django/core/management.py   (working copy)
5@@ -548,7 +548,7 @@
6     from django.core.servers.basehttp import run, AdminMediaHandler, WSGIServerException
7     from django.core.handlers.wsgi import WSGIHandler
8     if not addr:
9-        addr = '127.0.0.1'
10+        addr = ''
11     if not port.isdigit():
12         sys.stderr.write("Error: %r is not a valid port number.\n" % port)
13         sys.exit(1)