Set localhost explicitly to work around Django bug