Fixed get_host() for django 1.5.