Only specify allowed_hosts if there are dependencies