# Path: common_configs/utils.py
# def merge_items(base, new_items):
#     """
#     Merges two lists and eliminates duplicates
# 
#     :type base: list
#     :type new_items: list
#     :rtype: list
#     """
#     for item in new_items:
#         if not item in base:
#             base = base + [item]
#     return base


from configurations import values
from ..utils import merge_items
        ("text/x-scss", "sass --scss {infile} {outfile}"),
        ('text/stylus', 'stylus < {infile} > {outfile}'),
    ]

    #: List of css filters (rewrite urls and minify output)
    #:
    #: http://django-compressor.rtfd.org/latest/settings/#django.conf.settings.COMPRESS_CSS_FILTERS
    COMPRESS_CSS_FILTERS = values.ListValue([
        "compressor.filters.css_default.CssAbsoluteFilter",
        "compressor.filters.cssmin.CSSMinFilter"
    ])

    #: List of js filters (minify output)
    #:
    #: http://django-compressor.rtfd.org/latest/settings/#django.conf.settings.COMPRESS_JS_FILTERS
    COMPRESS_JS_FILTERS = values.ListValue([
        "compressor.filters.jsmin.JSMinFilter"
    ])

    #: http://django-compressor.rtfd.org/latest/settings/#django.conf.settings.COMPRESS_OUTPUT_DIR
    COMPRESS_OUTPUT_DIR = values.Value("cache")

    #: http://django-compressor.rtfd.org/latest/settings/#django.conf.settings.COMPRESS_CACHE_BACKEND
    COMPRESS_CACHE_BACKEND = values.Value("locmem")

    @property
    def INSTALLED_APPS(self):
        """
        Appends :mod:`compressor` to list of ``INSTALLED_APPS``.
        """

# Path: common_configs/utils.py
# def merge_items(base, new_items):
#     """
#     Merges two lists and eliminates duplicates
# 
#     :type base: list
#     :type new_items: list
#     :rtype: list
#     """
#     for item in new_items:
#         if not item in base:
#             base = base + [item]
#     return base


# Path: common_configs/apps/compress.py
from configurations import values
from ..utils import merge_items

        ("text/x-scss", "sass --scss {infile} {outfile}"),
        ('text/stylus', 'stylus < {infile} > {outfile}'),
    ]

    #: List of css filters (rewrite urls and minify output)
    #:
    #: http://django-compressor.rtfd.org/latest/settings/#django.conf.settings.COMPRESS_CSS_FILTERS
    COMPRESS_CSS_FILTERS = values.ListValue([
        "compressor.filters.css_default.CssAbsoluteFilter",
        "compressor.filters.cssmin.CSSMinFilter"
    ])

    #: List of js filters (minify output)
    #:
    #: http://django-compressor.rtfd.org/latest/settings/#django.conf.settings.COMPRESS_JS_FILTERS
    COMPRESS_JS_FILTERS = values.ListValue([
        "compressor.filters.jsmin.JSMinFilter"
    ])

    #: http://django-compressor.rtfd.org/latest/settings/#django.conf.settings.COMPRESS_OUTPUT_DIR
    COMPRESS_OUTPUT_DIR = values.Value("cache")

    #: http://django-compressor.rtfd.org/latest/settings/#django.conf.settings.COMPRESS_CACHE_BACKEND
    COMPRESS_CACHE_BACKEND = values.Value("locmem")

    @property
    def INSTALLED_APPS(self):
        """
        Appends :mod:`compressor` to list of ``INSTALLED_APPS``.
        """

        return merge_items(super(CompressBase, self).INSTALLED_APPS, [