def get_qiime2view_link(file_serve_url): site = f"{settings.PROTOCOL}://{settings.SITE_DOMAIN}{settings.HTTP_PORT}" full_url = site + file_serve_url qiime_link = util.qiime2view_link(full_url) return qiime_link
def get_qiime2view_link(file_serve_url): port = f':{settings.HTTP_PORT}' if settings.HTTP_PORT else '' site = f"{settings.PROTOCOL}://{settings.SITE_DOMAIN}{port}" full_url = site + file_serve_url qiime_link = util.qiime2view_link(full_url) return qiime_link