import re


def is_static_url(target: str) -> bool:
    """Returns whether the target URL is a static path

    Args:
        target: The target, either a static path that need to be passed to
            the static template tag, or an HTTP, HTTPS URL or absolute path
            that should be displayed directly.

    Returns:
        True if the target URL is a static path, or False otherwise.
    """
    return not (re.match("^https?://", target) or target.startswith("/"))