remove the need for settings/local.py (bug 999774)

this should put a ``try...except`` around ``socket.gethostname()`` and fallback to ``localhost``; some people do hack in airplane mode ;)