diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-11-03 20:07:56 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-11-03 20:12:24 +0100 |
| commit | 3e98d98b69e67f2f72055e4b3204d0486eaeff50 (patch) | |
| tree | a6cf48057b031edbfced6334155389dee816cada | |
| parent | 0546794397130b1574a667d57667bd032bff78d3 (diff) | |
Prevented host resolution when running dev server
Refs #19075, #2494.
Thanks Karen Tracey for spotting the issue.
| -rw-r--r-- | django/core/servers/basehttp.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/django/core/servers/basehttp.py b/django/core/servers/basehttp.py index a7004f2c2f..7387d13199 100644 --- a/django/core/servers/basehttp.py +++ b/django/core/servers/basehttp.py @@ -138,6 +138,10 @@ class WSGIRequestHandler(simple_server.WSGIRequestHandler, object): self.style = color_style() super(WSGIRequestHandler, self).__init__(*args, **kwargs) + def address_string(self): + # Short-circuit parent method to not call socket.getfqdn + return self.client_address[0] + def log_message(self, format, *args): # Don't bother logging requests for admin images or the favicon. if (self.path.startswith(self.admin_static_prefix) |
