project_home_tags/templatetags/project_home.py
def home_url():
    """Get project's home URL based on settings.PROJECT_HOME_NAMESPACE.

    Returns None if PROJECT_HOME_NAMESPACE is not defined in settings.
    """
    try:
        return reverse(home_namespace)
    except Exception:
        url = home_namespace
        try:
            validate_url = URLValidator()
            if '://' not in url:
                url = 'http://' + url
            validate_url(url)
            return(url)
        except ValidationError:
            return None
def home_url():
    try:
        return reverse(home_namespace)
    except Exception:
        url = home_namespace
        try:
            validate_url = URLValidator()
            if '://' not in url:
                url = 'http://' + url
            validate_url(url)
            return(url)
        except ValidationError:
            return None
def home_url ( ) : try : return reverse ( home_namespace ) except Exception : url = home_namespace try : validate_url = URLValidator ( ) if '://' not in url : url = 'http://' + url validate_url ( url ) return ( url ) except ValidationError : return None
Get project's home URL based on settings.PROJECT_HOME_NAMESPACE.

    Returns None if PROJECT_HOME_NAMESPACE is not defined in settings.
Get project s home URL based on settings . PROJECT_HOME_NAMESPACE .