@register.simple_tag
def protocol():
    return "https" if settings.SESSION_COOKIE_SECURE else "http"
Return 'https' or 'http', depending on the configuration.
dataset/ETHPy150Open mozilla/moztrap/moztrap/view/templatetags/urls.py/protocol