def _absolute_url(self, path):
    scheme = ('http' if settings.DEBUG else 'https')
    domain = settings.PRODUCTION_DOMAIN
    return urllib.parse.urlunparse((scheme, domain, path, '', '', ''))
def _absolute_url(self, path):
    scheme = ('http' if settings.DEBUG else 'https')
    domain = settings.PRODUCTION_DOMAIN
    return urllib.parse.urlunparse((scheme, domain, path, , , ))