djfrontend/templatetags/djfrontend.py
def djfrontend_twbs_css(version=None):
    """
    Returns Twitter Bootstrap CSS file.
    TEMPLATE_DEBUG returns full file, otherwise returns minified file.
    """
    if version is None:
        if not getattr(settings, 'DJFRONTEND_TWBS_CSS', False):
            version = getattr(settings, 'DJFRONTEND_TWBS_VERSION', DJFRONTEND_TWBS_VERSION_DEFAULT)
        else:
             version = getattr(settings, 'DJFRONTEND_TWBS_CSS', DJFRONTEND_TWBS_VERSION_DEFAULT)

    return format_html(
        '<link rel="stylesheet" href="{static}djfrontend/css/twbs/{v}/bootstrap{min}.css">',
        static=_static_url, v=version, min=_min)
def djfrontend_twbs_css(version=None):
    """
    Returns Twitter Bootstrap CSS file.
    TEMPLATE_DEBUG returns full file, otherwise returns minified file.
    """
    if version is None:
        if not getattr(settings, 'DJFRONTEND_TWBS_CSS', False):
            version = getattr(settings, 'DJFRONTEND_TWBS_VERSION', DJFRONTEND_TWBS_VERSION_DEFAULT)
        else:
             version = getattr(settings, 'DJFRONTEND_TWBS_CSS', DJFRONTEND_TWBS_VERSION_DEFAULT)

    return format_html(
        '<link rel="stylesheet" href="{static}djfrontend/css/twbs/{v}/bootstrap{min}.css">',
        static=_static_url, v=version, min=_min)
def djfrontend_twbs_css ( version = None ) : if version is None : if not getattr ( settings , 'DJFRONTEND_TWBS_CSS' , False ) : version = getattr ( settings , 'DJFRONTEND_TWBS_VERSION' , DJFRONTEND_TWBS_VERSION_DEFAULT ) else : version = getattr ( settings , 'DJFRONTEND_TWBS_CSS' , DJFRONTEND_TWBS_VERSION_DEFAULT ) return format_html ( '<link rel="stylesheet" href="{static}djfrontend/css/twbs/{v}/bootstrap{min}.css">' , static = _static_url , v = version , min = _min )
Returns Twitter Bootstrap CSS file.
    TEMPLATE_DEBUG returns full file, otherwise returns minified file.
Returns Twitter Bootstrap CSS file . TEMPLATE_DEBUG returns full file otherwise returns minified file .