'Make decision about whether to use a subdomain to serve docs'

def _use_subdomain(self):

    use_subdomain = getattr(settings, 'USE_SUBDOMAIN', False)
    public_domain = getattr(settings, 'PUBLIC_DOMAIN', None)
    return (use_subdomain and (public_domain is not None))
