def process_url()

in social_book/settings.py [0:0]


def process_url(url):
    """Process the URL to remove the protocol and the trailing slash."""
    url = url.replace("https://", "")
    if url[:-1] == "/":
        url = url[:len(url)-1]
    return url